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