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
Type | Name |
---|---|
FacturXDotNet.Models.XMP.XmpFacturXDocumentType | documentType |
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
Type | Name |
---|---|
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
Type | Name |
---|---|
System.ReadOnlySpan<System.Char> | value |
Exceptions
System.ArgumentOutOfRangeException
Thrown when the value is not a valid FacturXDotNet.Models.XMP.XmpFacturXDocumentType.