C# Class SimpleFramework.Xml.Core.AnnotationFactory

The AnnotationFactory is used to create annotations using a given class. This will classify the provided type as either a list, map, array, or a default object. Depending on the type provided a suitable annotation will be created. Annotations produced by this will have default attribute values.
Afficher le fichier Open project: ngallagher/simplexml Class Usage Examples

Méthodes publiques

Méthode Description
GetInstance ( Class type ) : Annotation

This is used to create an annotation for the provided type. Annotations created are used to match the type provided. So a List will have an ElementList annotation for example. Matching the annotation to the type ensures the best serialization for that type.

GetInstance ( loader ElementMap ) : SimpleFramework.Xml

Method Details

GetInstance() public méthode

This is used to create an annotation for the provided type. Annotations created are used to match the type provided. So a List will have an ElementList annotation for example. Matching the annotation to the type ensures the best serialization for that type.
public GetInstance ( Class type ) : Annotation
type Class /// the type to create the annotation for ///
Résultat Annotation

GetInstance() public méthode

public GetInstance ( loader ElementMap ) : SimpleFramework.Xml
ElementMap loader
Résultat SimpleFramework.Xml