Advertisement
Guest User

Untitled

a guest
May 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1.  static class EventManager
  2.     {
  3.         protected class CallbackInfo // Impossible!
  4.         {
  5.             private Callback callback;
  6.             public CallbackInfo(Callback cb)
  7.             {
  8.                 callback = cb;
  9.             }
  10.         }
  11.         public delegate void Callback(Guid id);
  12.         private static Dictionary<Guid, CallbackInfo> callbacks = new Dictionary<Guid, CallbackInfo>(); // Need non-static classes here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement