Hi SrinathMannam-4826,
Welcome to our Microsoft Q&A platform!
For the first error, there is no "ToHexString" method in NSData class. You can convert NSData to hexstring as follows.
string ToHexString(NSData data)
{
byte[] by = data.ToArray();
StringBuilder hex = new StringBuilder(by.Length * 2);
foreach (byte b in by)
hex.AppendFormat("{0:x2}", b);
return hex.ToString();
}
For the error "CS0246", please check if you have add the right reference and using it in your code. More info you can refer to Compiler Error CS0246.
As to the error "CS0234", similarly, you need to check if the namesapce has the correct references. For more info, refer to Compiler Error CS0234.
To handle the error in the second image, you can try to clean the project and clear the related cache on Mac under the path ~/Library/Caches/Xamarin/mtbs
.
Regards,
Kyle
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.