Jump to content

MultiDimensional Array with ArraysHelper


KevinKor

Recommended Posts

When attempting to cast multidimensional arrays, I get the error,  "Additional information: AIS-Exception. Cannot cast a System.String[,] to a System.String[]".

This occurs in the ArraysHelper class, under the method,  "public static TA CastArray<TA>(Array srcArray) where TA : class".

The method works fine when passing single dimensional arrays. 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use