System.Runtime.Remoting.XmlNamespaceEncoder.GetXmlNamespaceForType C# (CSharp) Méthode

GetXmlNamespaceForType() static private méthode

static private GetXmlNamespaceForType ( Type type, String dynamicUrl ) : String
type System.Type
dynamicUrl String
Résultat String
        internal static String GetXmlNamespaceForType(Type type, String dynamicUrl)
        {        
            String typeName = type.FullName;
            Assembly assem = type.Module.Assembly;
            StringBuilder sb = new StringBuilder(256);
            Assembly systemAssembly = typeof(String).Module.Assembly;

            if(assem == systemAssembly)
            {
                sb.Append(SoapServices.namespaceNS);
                sb.Append(typeName);
            }
            else
            {
                sb.Append(SoapServices.fullNS);
                sb.Append(typeName);
                sb.Append('/');
                sb.Append(assem.nGetSimpleName());
            }

            return sb.ToString();
        } // GetXmlNamespaceForType