示例#1
0
        private static string GetFullTypeName(string name, string assemblyName, bool useAssemblyName, int typeArgCount)
        {
            var fullTypeName = name;

            if (typeArgCount > 0)
            {
                fullTypeName += MiscHelpers.FormatInvariant("`{0}", typeArgCount);
            }

            if (useAssemblyName)
            {
                fullTypeName += MiscHelpers.FormatInvariant(", {0}", AssemblyHelpers.GetFullAssemblyName(assemblyName));
            }

            return(fullTypeName);
        }
            public static string GetFullAssemblyNameImpl(string name)
            {
                string fullName;

                return(((table != null) && table.TryGetValue(name, out fullName)) ? fullName : AssemblyHelpers.GetFullAssemblyName(name));
            }
 public static string GetFullAssemblyName(string name)
 {
     return(HostSettings.UseAssemblyTable ? AssemblyTableImpl.GetFullAssemblyNameImpl(name) : AssemblyHelpers.GetFullAssemblyName(name));
 }