public void SetMethod(System.Reflection.MethodInfo mtd, UInt16 index, System.Type paramType) { Index = index; Method = mtd; HashString = RPCParameter.GetRPCCode(mtd); MethordHash = UniHash.APHash(HashString); mParamType = paramType; if (paramType.BaseType != null && paramType.BaseType.IsGenericType) { var typeArgs = paramType.BaseType.GenericTypeArguments; if (typeArgs.Length > 1) { if (typeArgs[0].FullName != paramType.FullName) { System.Diagnostics.Debugger.Break(); } } } }
public UInt32 GetMethodHash() { var code = RPCParameter.GetRPCCode(Method); return((UInt32)UniHash.APHash(code)); }