internal static string GetTempAssemblyName(AssemblyName parent, string ns) { return parent.Name + ".XmlSerializers" + (ns == null || ns.Length == 0 ? "" : "." + ns.GetHashCode()); } }
public static string GetXmlSerializerAssemblyName(Type type, string defaultNamespace) { if (type == null) { throw new ArgumentNullException("type"); } return(Compiler.GetTempAssemblyName(type.Assembly.GetName(), defaultNamespace)); }