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

◆ TempAssembly() [2/2]

System.Xml.Serialization.TempAssembly.TempAssembly ( XmlMapping[] xmlMappings,
Type[] types,
string defaultNamespace,
string location )
inlinepackage

Definition at line 68 of file TempAssembly.cs.

69 {
70 bool flag = false;
71 for (int i = 0; i < xmlMappings.Length; i++)
72 {
73 xmlMappings[i].CheckShallow();
74 if (xmlMappings[i].IsSoap)
75 {
76 flag = true;
77 }
78 }
79 bool flag2 = false;
80 if (!flag)
81 {
83 try
84 {
86 }
87 catch (CodeGeneratorConversionException)
88 {
89 flag2 = true;
90 }
91 }
92 else
93 {
94 flag2 = true;
95 }
96 if (flag2)
97 {
98 throw new PlatformNotSupportedException(System.SR.CompilingScriptsNotSupported);
99 }
101 }
static string CompilingScriptsNotSupported
Definition SR.cs:2148
Definition SR.cs:7
void InitAssemblyMethods(XmlMapping[] xmlMappings)
static Assembly GenerateRefEmitAssembly(XmlMapping[] xmlMappings, Type[] types, string defaultNamespace)

References System.Xml.Serialization.TempAssembly._assembly, System.SR.CompilingScriptsNotSupported, System.Xml.Serialization.TempAssembly.GenerateRefEmitAssembly(), System.Xml.Serialization.TempAssembly.InitAssemblyMethods(), and System.Xml.Serialization.TempAssembly.UseLegacySerializerGeneration.