Hi;
I am not getting the condition to interpret char array with integer :
I am not getting the condition to interpret char array with integer :
C#:
string AjusteICMSDocumentoId = "102345";
char[] array = entidade.AjusteICMSDocumentoId.ToCharArray();
if (array[1] == 0)
{
if (viewModel.TipoImposto != (int)WorkDev.ERP.WApp.Core.Enums.FiscalEnum.TipoImpostoICMSAjusteEnum.ICMS)
{
await _notificacaoDominio.Adicionar(nameof(ICMSAjusteViewModel), string.Format(Criticas.Informacoes_Invalidas));
return viewModel;
}
}
Last edited by a moderator: