Skip to content

Class DateOnlyFormatMappingExtensions

Mapping methods for the FacturXDotNet.Models.CII.DateOnlyFormat enumeration.

Assembly: FacturXDotNet.dll
csharp
public static class DateOnlyFormatMappingExtensions

Methods

ToDateOnlyFormat(DateOnlyFormat)

Convert the FacturXDotNet.Models.CII.DateOnlyFormat enumeration to its integer representation.

csharp
public static int ToDateOnlyFormat(this DateOnlyFormat value)
Returns

System.Int32

Parameters
TypeName
FacturXDotNet.Models.CII.DateOnlyFormatvalue

ToDateOnlyFormatOrNull(int)

Convert the integer to its FacturXDotNet.Models.CII.DateOnlyFormat representation.

csharp
public static DateOnlyFormat? ToDateOnlyFormatOrNull(this int value)
Returns

System.Nullable<FacturXDotNet.Models.CII.DateOnlyFormat>

Parameters
TypeName
System.Int32value

ToDateOnlyFormat(int)

Convert the integer to its FacturXDotNet.Models.CII.DateOnlyFormat representation.

csharp
public static DateOnlyFormat ToDateOnlyFormat(this int value)
Returns

FacturXDotNet.Models.CII.DateOnlyFormat

Parameters
TypeName
System.Int32value
Exceptions

System.ArgumentOutOfRangeException
Thrown when the integer does not match any FacturXDotNet.Models.CII.DateOnlyFormat value.

The tools are open source and released under the MIT License, feel free to use, modify, and share.