C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

GetInstance() публичный Метод

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 ///
Результат Annotation

GetInstance() публичный Метод

public GetInstance ( loader ElementMap ) : SimpleFramework.Xml
ElementMap loader
Результат SimpleFramework.Xml