C# 클래스 NJsonApi.Conventions.Impl.DefaultPropertyScanningConvention

상속: IPropertyScanningConvention
파일 보기 프로젝트 열기: jacek-gorgon/NJsonApi 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

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