Convert
public Converter GetInstance(Convert convert) { Class type = convert.value(); if(type.isInterface()) { throw new ConvertException("Can not instantiate %s", type); } return GetInstance(type); } /// <summary>
/// <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)); }