Exemple #1
0
 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())
                              ));
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 public string AsString()
 {
     return(Rows.AsString() + Columns.AsString() + Symbols.AsString());
 }