public virtual void SendMsg <T>(ESET_Result r) where T : State_Base_Msg { ATrace.Log("State_Base_Msg:" + typeof(T).ToString() + " : " + r); _Result = r; Message.Send <T>((T)this); }
public static void Send <T>(ESET_Result r) where T : State_Base_Msg { T inst = Activator.CreateInstance <T>(); inst.SendMsg <T>(r); }