Ejemplo n.º 1
0
        public static string GetScriptFullName(TypeReference type)
        {
            StringBuilder builder = new StringBuilder(type.Namespace);

            if (type.Namespace == null || type.Namespace.Length == 0)
            {
                builder.Append(Helpers.ReplaceSpecialChars(type.FullName));
            }
            else
            {
                if (builder.Length > 0)
                {
                    builder.Append('.');
                }

                builder.Append(Helpers.ReplaceSpecialChars(type.Name));
            }

            if (type.GenericParameters.Count > 0)
            {
                builder.Append("$" + type.GenericParameters.Count);
            }

            return(builder.ToString());
        }
Ejemplo n.º 2
0
        public static string GetScriptFullName(TypeDefinition type)
        {
            var name = Helpers.ReplaceSpecialChars(type.FullName);

            /*if (type.GenericParameters.Count > 0)
             * {
             *  name += "$" + type.GenericParameters.Count;
             * }*/

            return(name);
        }
Ejemplo n.º 3
0
        public static string GetScriptFullName(IType type)
        {
            var name = Helpers.ReplaceSpecialChars(type.FullName);

            if (type.TypeParameterCount > 0)
            {
                name += "$" + type.TypeParameterCount;
            }

            return(name);
        }