Пример #1
0
        internal static int ComputeIdWithCRC(Type type)
        {
            string typeName = type.Name;

            if (type.Namespace != null)
            {
                typeName = type.Namespace + typeName;
            }
            return(IdUtil.ComputeIdWithCRC(typeName));
        }
Пример #2
0
        internal static int ComputeIdWithCRC(MethodInfo methodInfo)
        {
            string typeName = methodInfo.Name;

            if (methodInfo.DeclaringType != (Type)null)
            {
                if (methodInfo.DeclaringType.Namespace != null)
                {
                    typeName = methodInfo.DeclaringType.Namespace + typeName;
                }
                typeName = methodInfo.DeclaringType.Name + typeName;
            }
            return(IdUtil.ComputeIdWithCRC(typeName));
        }