public static MethodInfo GetHandler(InterHeader ih) { MethodInfo meth; if (handlers.TryGetValue(ih, out meth)) { return meth; } return null; }
public static MethodInfo GetHandler(InterHeader ih) { MethodInfo meth; if (Handlers.TryGetValue(ih, out meth)) { return(meth); } return(null); }
public InterPacketHandlerAttribute(InterHeader ih) { Header = ih; }
public InterPacket(InterHeader type) : this((ushort)type) { }
public InterPacketHandlerAttribute(InterHeader ih) { Header = ih; }
public InterPacket(InterHeader type) : this((ushort)type) { }
public static MethodInfo GetHandler(InterHeader ih) { return(_handlers.TryGetValue(ih, out var methodInfo) ? methodInfo : null); }