public static int GetElementSize(this Array array) { if (array == null) { throw new ArgumentNullException(nameof(array)); } return(Marshal.GetArrayElementSize(array.GetType())); }
internal int GetElementSize() { return(Marshal.GetArrayElementSize(GetType())); }