GetInstance() public method

This is used to instantiate the converter based on the type provided. If the type provided can not be instantiated for some reason then an exception is thrown from this method.
public GetInstance ( Class type ) : Converter
type Class /// this is the converter type to be instantiated ///
return Converter
Example #1
0
 /// <summary>
 /// This is used to acquire a <c>Converter</c> instance from
 /// this binder. All instances are cached to reduce the overhead
 /// of lookups during the serialization process. Converters are
 /// lazily instantiated and so are only created if demanded.
 /// </summary>
 /// <param name="type">
 /// this is the type to find the converter for
 /// </param>
 /// <returns>
 /// this returns the converter instance for the type
 /// </returns>
 public Converter Create(Class type)
 {
     return(factory.GetInstance(type));
 }