Unify:Sandbox

From Unify Community Wiki
Jump to: navigation, search

<blue>I wish this made text blue. I wish I knew how to make text colored.</blue>

Do it like this: some blue text.

If you want to use colour in a widespread way, let me know and I can set up some templates to make it easier to apply colours. --NCarter 23:12, 28 April 2006 (GMT)



Apply changes to prefab.

Apply changes to prefab. (italic)

Apply changes to prefab. (bold)

Apply changes to prefab. (out of control)


This could do with some explanation, possibly even to the point of where the constructs came from (such as the locking).

<csharp> static public class Messenger<T> {

   private static Dictionary<string, System.Delegate> eventTable = new Dictionary<string, System.Delegate>();
   static public void AddListener(string name, Callback<T> handler)
   {
       if (!eventTable.ContainsKey(name))
       {
           eventTable.Add(name, null);
       }
       lock (eventTable)
       {
           eventTable[name] = (Callback<T>)eventTable[name] + handler;
       }
   }
   // Etc...

</csharp>

Personal tools

Variants
Actions
Navigation
Extras
Toolbox