C# Class indice.Edi.Utilities.EdiExtensions

Afficher le fichier Open project: indice-co/EDI.Net

Méthodes publiques

Méthode Description
InferStructure ( this attributes ) : EdiStructureType

Figures out the container (EdiStructureType) based upon the current pool of EdiStructureAttribute.

IsPrimitiveToken ( this token ) : bool
IsStartToken ( this token ) : bool
OfType ( this attributes, EdiStructureType container ) : IEnumerable

Parse ( this value, Picture picture, char decimalMark ) : decimal?
ParseEdiDate ( this value, string format, CultureInfo culture = null ) : System.DateTime
ToEdiString ( this value, Picture picture ) : string
ToEdiString ( this value, Picture picture, char decimalMark ) : string
TryParse ( this value, Picture picture, char decimalMark, decimal &number ) : bool
TryParseEdiDate ( this value, string format, CultureInfo culture, System.DateTime &date ) : bool

Private Methods

Méthode Description
ParseEdiDateInternal ( string value, string format, CultureInfo culture = null ) : DateTime?

Method Details

InferStructure() public static méthode

Figures out the container (EdiStructureType) based upon the current pool of EdiStructureAttribute.
public static InferStructure ( this attributes ) : EdiStructureType
attributes this
Résultat EdiStructureType

IsPrimitiveToken() public static méthode

public static IsPrimitiveToken ( this token ) : bool
token this
Résultat bool

IsStartToken() public static méthode

public static IsStartToken ( this token ) : bool
token this
Résultat bool

OfType() public static méthode

public static OfType ( this attributes, EdiStructureType container ) : IEnumerable
attributes this The list of available attributes
container EdiStructureType This is the type of container we are searchig attributes for.
Résultat IEnumerable

Parse() public static méthode

public static Parse ( this value, Picture picture, char decimalMark ) : decimal?
value this
picture Picture
decimalMark char
Résultat decimal?

ParseEdiDate() public static méthode

public static ParseEdiDate ( this value, string format, CultureInfo culture = null ) : System.DateTime
value this
format string
culture System.Globalization.CultureInfo
Résultat System.DateTime

ToEdiString() public static méthode

public static ToEdiString ( this value, Picture picture ) : string
value this
picture Picture
Résultat string

ToEdiString() public static méthode

public static ToEdiString ( this value, Picture picture, char decimalMark ) : string
value this
picture Picture
decimalMark char
Résultat string

TryParse() public static méthode

public static TryParse ( this value, Picture picture, char decimalMark, decimal &number ) : bool
value this
picture Picture
decimalMark char
number decimal
Résultat bool

TryParseEdiDate() public static méthode

public static TryParseEdiDate ( this value, string format, CultureInfo culture, System.DateTime &date ) : bool
value this
format string
culture System.Globalization.CultureInfo
date System.DateTime
Résultat bool