Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetDataContractsForKnownTypes()

static Dictionary< XmlQualifiedName, DataContract > System.Runtime.Serialization.XmlObjectSerializerContext.GetDataContractsForKnownTypes ( IList< Type > knownTypeList)
inlinestaticpackageinherited

Definition at line 181 of file XmlObjectSerializerContext.cs.

182 {
183 if (knownTypeList == null)
184 {
185 return null;
186 }
189 for (int i = 0; i < knownTypeList.Count; i++)
190 {
191 Type type = knownTypeList[i];
192 if (type == null)
193 {
194 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(System.SR.Format(System.SR.NullKnownType, "knownTypes")));
195 }
196 DataContract.CheckAndAdd(type, typesChecked, ref nameToDataContractTable);
197 }
199 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string NullKnownType
Definition SR.cs:220
Definition SR.cs:7

References System.Xml.ArgumentException, System.Runtime.Serialization.DataContract.CheckAndAdd(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Runtime.Serialization.Dictionary, System.SR.Format(), System.SR.NullKnownType, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), and System.type.