67 if (scopes.Length != 0)
169 for (
int i = 0; i <
methods.Length; i++)
274 if (writeMethod !=
null)
277 _writer.
Write(
"protected override void Serialize(object objectToSerialize, ");
294 if (readMethod !=
null)
297 _writer.
Write(
"protected override object Deserialize(");
360 _writer.
Write(
"public class XmlSerializerContract : global::");
389 return mapping.TypeDesc.CanBeElementValue;
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static string UnescapeName(string name)
static string MakeValid(string identifier)
static string GetCSharpName(string name)
static bool IsTypeDynamic(Type type)
static void WriteQuotedCSharpString(IndentedWriter writer, string value)
TypeDesc GetTypeDesc(string name, string ns)
void GeneratePublicMethods(string privateName, string publicName, string[] methods, XmlMapping[] xmlMappings)
Hashtable GeneratedMethods
TypeMapping[] EnsureArrayIndex(TypeMapping[] a, int index)
TypeMapping[] _referencedMethods
ReflectionAwareCodeGen RaCodeGen
void GenerateGetSerializer(Hashtable serializers, XmlMapping[] xmlMappings)
void GenerateSupportedTypes(Type[] types)
readonly ReflectionAwareCodeGen _raCodeGen
string GenerateBaseSerializer(string baseSerializer, string readerClass, string writerClass, CodeIdentifiers classes)
void GenerateHashtableGetBegin(string privateName, string publicName)
readonly TypeDesc _qnameTypeDesc
string ReferenceMapping(TypeMapping mapping)
readonly TypeScope[] _scopes
readonly string _className
virtual void GenerateMethod(TypeMapping mapping)
static bool IsWildcard(SpecialMapping mapping)
readonly Hashtable _generatedMethods
readonly TypeDesc _stringTypeDesc
readonly IndentedWriter _writer
string GenerateTypedSerializer(string readMethod, string writeMethod, XmlMapping mapping, CodeIdentifiers classes, string baseSerializer, string readerClass, string writerClass)
void GenerateTypedSerializers(Hashtable serializers)
void GenerateSerializerContract(string className, XmlMapping[] xmlMappings, Type[] types, string readerType, string[] readMethods, string writerType, string[] writerMethods, Hashtable serializers)
void GenerateReferencedMethods()
readonly Hashtable _methodNames
void WriteQuotedCSharpString(string value)
XmlSerializationCodeGen(IndentedWriter writer, TypeScope[] scopes, string access, string className)
void GenerateHashtableGetEnd(string privateName)