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

◆ IsSerializerVersionMatch()

static bool System.Xml.Serialization.TempAssembly.IsSerializerVersionMatch ( Assembly serializer,
Type type,
string defaultNamespace )
inlinestaticprivate

Definition at line 234 of file TempAssembly.cs.

235 {
236 if (serializer == null)
237 {
238 return false;
239 }
240 object[] customAttributes = serializer.GetCustomAttributes(typeof(XmlSerializerVersionAttribute), inherit: false);
241 if (customAttributes.Length != 1)
242 {
243 return false;
244 }
245 XmlSerializerVersionAttribute xmlSerializerVersionAttribute = (XmlSerializerVersionAttribute)customAttributes[0];
247 {
248 return true;
249 }
250 return false;
251 }
virtual object[] GetCustomAttributes(bool inherit)
Definition Assembly.cs:332
static string GenerateAssemblyId(Type type)

References System.Xml.Dictionary, System.Xml.Serialization.TempAssembly.GenerateAssemblyId(), System.Reflection.Assembly.GetCustomAttributes(), and System.type.

Referenced by System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly().