Mascara CNPJ / CPF

Imports System.ComponentModel
<Extension()>
Public Function mascaraCNPJ_CPF(doc As String) As String
Dim mascara As New MaskedTextProvider("00\.000\.000/0000-00")
If doc.soNumero.Length = 11 Then
mascara = New MaskedTextProvider("000\.000\.000-00")
End If
mascara.Set(doc)
Return mascara.ToString()
End Function