示例#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
        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);
 }