Following is the sample code that converts a string array into GUID array with faster performance:
You can convert an array from one type to another using the above approach.
String strGUIDs[];
//Consider the above array is containing all GUIDs in string format.
Guid[] guids = Array.ConvertAll(strGUIDs, x => Guid.Parse(x));
You can convert an array from one type to another using the above approach.
No comments:
Post a Comment
Thanks for visiting my blog.
However, if this helped you in any way, please take a moment to write a comment.
Thanks
Nirman