True DBGrid for WinForms | ComponentOne
C1.Win.C1TrueDBGrid.4.5.2 Assembly / C1.Win.C1TrueDBGrid.Util.Xml.Serialization Namespace / IMemberTypeEncoder Interface
Members

In This Topic
    IMemberTypeEncoder Interface
    In This Topic
    This interface is used to allow objects and collection to serialize types of their members in a custom way. If a collection implements this interface, TypeToString is invoked during serialization of collection items, and for all items for which it returns a non-null string, that string is used as the element name of the item. If a class implements this interface, AND a member of that class has attribute TypeNameSerialization.Custom, AND does not have attribute XmlAttribute (i.e. is serialized as an element), TypeToString is invoked on the owner when that member is serialized, and if that returns a non-null string, that string is used as the value of TypeName attribute. When deserializing a collection which implements this interface, StringToType is invoked for each new item in the collection, and if that returns a non-null type, that type is used to create the item. Otherwise, TypeNameSerialization attribute is used. When deserializing a class which implements this interface, StringToType is invoked on that class for members with TypeNameSerialization.Custom attribute set.
    Object Model
    IMemberTypeEncoder Interface
    Syntax
    'Declaration
     
    Public Interface IMemberTypeEncoder 
    public interface IMemberTypeEncoder 
    See Also