Ejemplo n.º 1
0
        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();
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public UInt32 GetMethodHash()
        {
            var code = RPCParameter.GetRPCCode(Method);

            return((UInt32)UniHash.APHash(code));
        }