Class Format
Formatar/Definir máscara de valores
Inheritance
System.Object
Format
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Unimake.Business.DFe.Utility
Assembly: Unimake.Business.DFe.dll
Syntax
public static class Format
Methods
ChaveDFe(String)
Formatar a string da chave da NFe, MDFe, CTe, CTeOS em um formato com uma máscara
Declaration
public static string ChaveDFe(string chave)
Parameters
Type | Name | Description |
---|---|---|
System.String | chave |
Returns
Type | Description |
---|---|
System.String | Chave formatada, com uma mascara |
Examples
var chave = "35220100000000000100580020000004351000005350"; MessageBox.Show(Format.ChaveDFe(chave)); //Resultado será: 35-2201-00000000000100-58-002-000000435-1-00000535-0