C# 클래스 Microsoft.Samples.Synchronization.ClientServices.Formatters.FormatterUtilities

파일 보기 프로젝트 열기: rafek/SyncFx 1 사용 예제들

공개 메소드들

메소드 설명
ConvertDateTimeForType_Atom ( object objValue, Type type ) : object

Looks at passed in Type and calls the appropriate Date functions for Atom

ConvertDateTimeToAtom ( System.DateTime date ) : string

Converts DateTime to OData Atom format as specified in http://www.odata.org/developers/protocols/atom-format#PrimitiveTypes for DateTime Format is"yyyy-MM-ddThh:mm:ss.fffffff" DateTime to convert

ConvertTimeToAtom ( System.TimeSpan t ) : string

Converts a TimeSpan to OData atom format as specified in http://www.odata.org/developers/protocols/atom-format#PrimitiveTypes for Time Actual lexical representation is time'hh:mm:ss.fffffff'

GetEdmType ( Type type ) : string

비공개 메소드들

메소드 설명
ParseAtomString ( string value, Type type ) : object
ParseDateTimeFromString ( string value, Type type ) : object

메소드 상세

ConvertDateTimeForType_Atom() 공개 정적인 메소드

Looks at passed in Type and calls the appropriate Date functions for Atom
public static ConvertDateTimeForType_Atom ( object objValue, Type type ) : object
objValue object Actual value
type System.Type Type coverting from
리턴 object

ConvertDateTimeToAtom() 공개 정적인 메소드

Converts DateTime to OData Atom format as specified in http://www.odata.org/developers/protocols/atom-format#PrimitiveTypes for DateTime Format is"yyyy-MM-ddThh:mm:ss.fffffff" DateTime to convert
public static ConvertDateTimeToAtom ( System.DateTime date ) : string
date System.DateTime
리턴 string

ConvertTimeToAtom() 공개 정적인 메소드

Converts a TimeSpan to OData atom format as specified in http://www.odata.org/developers/protocols/atom-format#PrimitiveTypes for Time Actual lexical representation is time'hh:mm:ss.fffffff'
public static ConvertTimeToAtom ( System.TimeSpan t ) : string
t System.TimeSpan Timespan to convert
리턴 string

GetEdmType() 공개 정적인 메소드

public static GetEdmType ( Type type ) : string
type System.Type
리턴 string