Skip to content

Class XmpFacturXDocumentTypeMappingExtensions

Mapping methods for the FacturXDotNet.Models.XMP.XmpFacturXDocumentType enumeration.

Assembly: FacturXDotNet.dll
csharp
public static class XmpFacturXDocumentTypeMappingExtensions

Methods

ToFacturXDocumentTypeString(XmpFacturXDocumentType)

Convert the FacturXDotNet.Models.XMP.XmpFacturXDocumentType to its string representation.

csharp
public static ReadOnlySpan<char> ToFacturXDocumentTypeString(this XmpFacturXDocumentType documentType)
Returns

System.ReadOnlySpan<System.Char>

Parameters
TypeName
FacturXDotNet.Models.XMP.XmpFacturXDocumentTypedocumentType

ToFacturXDocumentTypeOrNull(ReadOnlySpan<char>)

Convert the string to its FacturXDotNet.Models.XMP.XmpFacturXDocumentType representation.

csharp
public static XmpFacturXDocumentType? ToFacturXDocumentTypeOrNull(this ReadOnlySpan<char> value)
Returns

System.Nullable<FacturXDotNet.Models.XMP.XmpFacturXDocumentType>

Parameters
TypeName
System.ReadOnlySpan<System.Char>value

ToFacturXDocumentType(ReadOnlySpan<char>)

Convert the string to its FacturXDotNet.Models.XMP.XmpFacturXDocumentType representation.

csharp
public static XmpFacturXDocumentType ToFacturXDocumentType(this ReadOnlySpan<char> value)
Returns

FacturXDotNet.Models.XMP.XmpFacturXDocumentType

Parameters
TypeName
System.ReadOnlySpan<System.Char>value
Exceptions

System.ArgumentOutOfRangeException
Thrown when the value is not a valid FacturXDotNet.Models.XMP.XmpFacturXDocumentType.

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