Example #1
0
 internal Font(int rows, int rowHeight, int[] offsets, int[] widths)
 {
     Rows      = rows;
     RowHeight = rowHeight;
     Offsets   = new Collections.Immutable.ImmutableArray <int>(offsets);
     Widths    = new Collections.Immutable.ImmutableArray <int>(widths);
 }
Example #2
0
        public BaseEncoding(IEnumerable<char> alphabet)
        {
            Alphabet = new Collections.Immutable.ImmutableArray<char>(alphabet);

            if (Alphabet.Count == 1)
            {
                throw new Exception("Require at least two characters in the alphabet.");
            }
        }
Example #3
0
        public BaseEncoding(IEnumerable <char> alphabet)
        {
            Alphabet = new Collections.Immutable.ImmutableArray <char>(alphabet);

            if (Alphabet.Count == 1)
            {
                throw new Exception("Require at least two characters in the alphabet.");
            }
        }
Example #4
0
 public Message(object sender, string method, params object[] args)
 {
     Sender = sender;
     Method = method;
     Args   = new Collections.Immutable.ImmutableArray <object>(args);
 }
Example #5
0
 public Message(object sender, string method, params object[] args)
 {
     Sender = sender;
     Method = method;
     Args = new Collections.Immutable.ImmutableArray<object>(args);
 }