예제 #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);
 }
예제 #2
0
파일: Encoding.cs 프로젝트: Frassle/Ibasa
        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.");
            }
        }
예제 #3
0
파일: Encoding.cs 프로젝트: bonomali/Ibasa
        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.");
            }
        }
예제 #4
0
파일: Message.cs 프로젝트: bonomali/Ibasa
 public Message(object sender, string method, params object[] args)
 {
     Sender = sender;
     Method = method;
     Args   = new Collections.Immutable.ImmutableArray <object>(args);
 }
예제 #5
0
파일: Message.cs 프로젝트: Frassle/Ibasa
 public Message(object sender, string method, params object[] args)
 {
     Sender = sender;
     Method = method;
     Args = new Collections.Immutable.ImmutableArray<object>(args);
 }