C# Класс UtilJsonApiSerializer.Conventions.Impl.DefaultPropertyScanningConvention

Наследование: IPropertyScanningConvention
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DefaultPropertyScanningConvention ( ) : System
GetPropertyName ( PropertyInfo pi ) : string

Gets the name of the property as it gets serialized in JSON.

IsLinkedResource ( PropertyInfo pi ) : bool

Used to distinguish simple properties (serialized in-line) from linked resources (side-loaded in "linked" section).

IsPrimaryId ( PropertyInfo propertyInfo ) : bool

Determines if the given PropertyInfo is the primary ID of the currently scanned resource.

ShouldIgnore ( PropertyInfo pi ) : bool

Determines if the property should be ignored during scanning.

Приватные методы

Метод Описание
IsMarkedSerializeAsPrimitive ( PropertyInfo pi ) : bool

Looks for "SerializeAsPrimitive" using reflection, with the idea being that such an attribute may be re-defined in projects that don't reference this one

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

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

public DefaultPropertyScanningConvention ( ) : System
Результат System

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

Gets the name of the property as it gets serialized in JSON.
public GetPropertyName ( PropertyInfo pi ) : string
pi System.Reflection.PropertyInfo
Результат string

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

Used to distinguish simple properties (serialized in-line) from linked resources (side-loaded in "linked" section).
public IsLinkedResource ( PropertyInfo pi ) : bool
pi System.Reflection.PropertyInfo
Результат bool

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

Determines if the given PropertyInfo is the primary ID of the currently scanned resource.
public IsPrimaryId ( PropertyInfo propertyInfo ) : bool
propertyInfo System.Reflection.PropertyInfo
Результат bool

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

Determines if the property should be ignored during scanning.
public ShouldIgnore ( PropertyInfo pi ) : bool
pi System.Reflection.PropertyInfo
Результат bool