C# Class indice.Edi.Utilities.EdiExtensions

ファイルを表示 Open project: indice-co/EDI.Net

Public Methods

Method 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

Method Description
ParseEdiDateInternal ( string value, string format, CultureInfo culture = null ) : DateTime?

Method Details

InferStructure() public static method

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

IsPrimitiveToken() public static method

public static IsPrimitiveToken ( this token ) : bool
token this
return bool

IsStartToken() public static method

public static IsStartToken ( this token ) : bool
token this
return bool

OfType() public static method

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.
return IEnumerable

Parse() public static method

public static Parse ( this value, Picture picture, char decimalMark ) : decimal?
value this
picture Picture
decimalMark char
return decimal?

ParseEdiDate() public static method

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

ToEdiString() public static method

public static ToEdiString ( this value, Picture picture ) : string
value this
picture Picture
return string

ToEdiString() public static method

public static ToEdiString ( this value, Picture picture, char decimalMark ) : string
value this
picture Picture
decimalMark char
return string

TryParse() public static method

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

TryParseEdiDate() public static method

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