I have a Listof objects that I would like to convert to a byte[]
My List is defined like this:
List<object> objects = new List<object>
{
"obj1", "obj2", "obj2"
};
Is it possible to convert this list to a byte[] in some clean way? The list only contains base64 strings
All help is appreciated
Piece of cake:
If
objectsis really aList<Object>as @AustinSalonen points out, as opposed to aList<String>, you need to make sure that you only have strings first:or cast: