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

◆ WriteAssemblyInfo()

string System.Xml.Serialization.ReflectionAwareCodeGen.WriteAssemblyInfo ( Type type)
inlineprivate

Definition at line 168 of file ReflectionAwareCodeGen.cs.

169 {
170 string fullName = type.Assembly.FullName;
172 if (text == null)
173 {
174 int num = fullName.IndexOf(',');
175 string fullName2 = ((num > -1) ? fullName.Substring(0, num) : fullName);
176 text = GenerateVariableName("assembly", fullName2);
177 _writer.Write("static " + typeof(Assembly).FullName + " " + text + " = ResolveDynamicAssembly(");
178 WriteQuotedCSharpString(DynamicAssemblies.GetName(type.Assembly));
179 _writer.WriteLine(");");
181 }
182 return text;
183 }
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
static void WriteQuotedCSharpString(IndentedWriter writer, string value)
string GenerateVariableName(string prefix, string fullName)

References System.Xml.Serialization.ReflectionAwareCodeGen._reflectionVariables, System.Xml.Serialization.ReflectionAwareCodeGen._writer, System.Collections.Hashtable.Add(), System.Xml.Dictionary, System.FullName, System.Xml.Serialization.ReflectionAwareCodeGen.GenerateVariableName(), System.Xml.Serialization.DynamicAssemblies.GetName(), System.text, System.type, System.Xml.Serialization.IndentedWriter.Write(), System.Xml.Serialization.IndentedWriter.WriteLine(), and System.Xml.Serialization.ReflectionAwareCodeGen.WriteQuotedCSharpString().

Referenced by System.Xml.Serialization.ReflectionAwareCodeGen.WriteTypeInfo().