Beispiel #1
0
 /// <summary>
 /// Constructor for the <c>ConverterFactory</c> object.
 /// This will create an internal cache which is used to cache all
 /// instantiations made by the factory. Caching the converters
 /// ensures there is no overhead with instantiations.
 /// </summary>
 public ConverterFactory()
 {
     this.cache = new ConverterCache();
 }
Beispiel #2
0
 /// <summary>
 /// Constructor for the <c>Registry</c> object. This is used
 /// to create a registry between classes and the converters that
 /// should be used to serialize and deserialize the instances. All
 /// converters are instantiated once and cached for reuse.
 /// </summary>
 public Registry()
 {
     this.binder = new RegistryBinder();
     this.cache  = new ConverterCache();
 }