Example #1
0
 public static int SizeOfArray <T>(T[] value)
 {
     return(value.Sum(v => SizeMapper <T> .ValueSizeFunc(v)));
 }
Example #2
0
 public static int SizeOf <T>(T value)
 {
     return(SizeMapper <T> .ValueSizeFunc(value));
 }