private static object DoFunction(object v, string data) { matrix a = v as matrix; switch (data) { case "Adjugate": return(a.Adjugate()); case "Det": return(a.Det()); case "Gauss_view": return(a.Gauss_view()); case "Transpose": return(a.Transposed_Matrix()); case "Inverse": return(a.Invertible()); case "Rang": return((double)a.Rang); case "Length": return((double)a.Length); } throw new ReadMatrixException(); }