I have a class which is using XmlConvert to convert relevant datatype data in to string.Now XmlConvert has method ToString to convert int,decimal,byte data in to string but its overload doesnt have byte[].
public class StringConverter
{
public virtual string ToString(byte[] value) => XmlConvert.ToString(value); //Error
}
Update : Reason why i am using XmlConvert class to convert data to string is to make this conversion locale independent
Since i am tying to use XmlConvert class to convert byte[] to string in locale independent so this is not a duplicate because i have already gone through couple of links below :
How do you convert a byte array to a hexadecimal string, and vice versa?
How to convert UTF-8 byte[] to string?
It is not possible to use XmlConvert
class to convert byte[] to string?