public static string subscribe(string sName, _Delegate _delegate) { if (!_globalSubscription.ContainsKey(sName)) { _globalSubscription[sName] = new Dictionary <string, _Delegate>(); } var id = Guid.NewGuid().ToString(); _globalSubscription[sName][id] = _delegate; return(id); }
/// <summary> /// Create a new proxy for a method identified by a <see cref="MethodInfo"/> object. /// </summary> /// <param name="_methodInfo"> /// The <see cref="FieldInfo"/> object used to construct this proxy /// </param> public MethodProxy(MethodInfo _methodInfo) { MethodInfo = _methodInfo; m_invoker = CreateInvoker(_methodInfo); }
public _Function(_Delegate _del) { _delegate = _del; }