C# Class Microsoft.Samples.Synchronization.ClientServices.Formatters.FormatterUtilities

Afficher le fichier Open project: rafek/SyncFx Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
ParseAtomString ( string value, Type type ) : object
ParseDateTimeFromString ( string value, Type type ) : object

Method Details

ConvertDateTimeForType_Atom() public static méthode

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
Résultat object

ConvertDateTimeToAtom() public static méthode

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
Résultat string

ConvertTimeToAtom() public static méthode

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
Résultat string

GetEdmType() public static méthode

public static GetEdmType ( Type type ) : string
type System.Type
Résultat string