Exemplo n.º 1
0
        public static T[][] Split <T>(this T[] buffer, int index)
        {
            int size = buffer.Length - index;

            T[] result1 = Universal.CutArray(buffer, 0, index);
            T[] result2 = Universal.CutArray(buffer, index, size);
            return(new T[][] { result1, result2 });
        }
Exemplo n.º 2
0
 public static bool Check(this Type type, string text)
 {
     return(Universal.Execute(() => type.Cast(text)));
 }
Exemplo n.º 3
0
 public static bool Check <T>(this string text)
 {
     return(Universal.Execute(() => text.Cast <T>()));
 }