Exemple #1
0
            internal static void Add(Type type, string localName)
            {
                XmlQualifiedName name = DataContract.CreateQualifiedName(localName, "http://www.w3.org/2001/XMLSchema");

                typeToName.Add(type, name);
                nameToType.Add(name, type);
            }
Exemple #2
0
            internal SurrogateDataContractCriticalHelper(Type type, ISerializationSurrogate serializationSurrogate) : base(type)
            {
                string str;
                string str2;

                this.serializationSurrogate = serializationSurrogate;
                DataContract.GetDefaultStableName(DataContract.GetClrTypeFullName(type), out str, out str2);
                base.SetDataContractName(DataContract.CreateQualifiedName(str, str2));
            }