public PartitionsSet WithNewOrder(int a, int b, int c) { return(new PartitionsSet(a == 0 ? Rows.AsString() : (a == 1 ? Columns.AsString() : Symbols.AsString()), b == 0 ? Rows.AsString() : (b == 1 ? Columns.AsString() : Symbols.AsString()), c == 0 ? Rows.AsString() : (c == 1 ? Columns.AsString() : Symbols.AsString()) )); }
public Dictionary <string, string> AsDictionary() { Dictionary <string, string> dict = new Dictionary <string, string>(); dict.Add("rows", Rows.AsString()); dict.Add("cols", Columns.AsString()); dict.Add("symbols", Symbols.AsString()); return(dict); }
public string AsString() { return(Rows.AsString() + Columns.AsString() + Symbols.AsString()); }