示例#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 });
        }
示例#2
0
 public static bool Check(this Type type, string text)
 {
     return(Universal.Execute(() => type.Cast(text)));
 }
示例#3
0
 public static bool Check <T>(this string text)
 {
     return(Universal.Execute(() => text.Cast <T>()));
 }