Rajeev Kumar

Rajeev Kumar

  • 793
  • 1k
  • 63.5k

Firstly we converted return byte code to string and now want to true

Aug 28 2023 5:27 AM

Firstly we converted return byte code to string and now want to true or false on behalf oh returning string content .But it giving an error string was not recognized as a valid boolean. here we declare bool Result=false and after that -

and byte code coming in OutData. and after that  this code as following- 

_EmailRequest.requestDataId = js.Serialize(objDic);
???????_EmailRequest.AppHostUrl = _AppConfigManager.AppHostUrl;
_EmailRequest.moduleId = ModuleOption.Invoice;
OutData = GetMail(_EmailRequest, out Result);
string content = Encoding.UTF8.GetString(OutData, 0,OutData.Length);
Result = Convert.ToBoolean(content);

 


Answers (1)