Ejemplo n.º 1
0
 public StringSerializer(Encoding encoding = null, NameAndTypeMappings nameAndTypeMappings = null)
 {
     _encoding               = encoding ?? Encoding.Default;
     _nameAndTypeMappings    = nameAndTypeMappings ?? new NameAndTypeMappings();
     _stringStreamSerializer = new TextStreamSerializer(_nameAndTypeMappings);
 }
Ejemplo n.º 2
0
 public TextStreamSerializer(NameAndTypeMappings customMappings)
 {
     _objectToAstTranslator    = new ObjectToAstTranslator(customMappings);
     _stringToObjectTranslator = new StringToObjectTranslator(customMappings);
 }