protected bool Equals(InnerPortable other)
 {
     return(bb.SequenceEqual(other.bb) && cc.SequenceEqual(other.cc) && dd.SequenceEqual(other.dd) &&
            ff.SequenceEqual(other.ff) &&
            ii.SequenceEqual(other.ii) && ll.SequenceEqual(other.ll) && nn.SequenceEqual(other.nn) &&
            ss.SequenceEqual(other.ss));
 }
Пример #2
0
 public void ReadPortable(IPortableReader reader)
 {
     b   = reader.ReadByte("b");
     bo  = reader.ReadBoolean("bool");
     c   = reader.ReadChar("c");
     s   = reader.ReadShort("s");
     i   = reader.ReadInt("i");
     l   = reader.ReadLong("l");
     f   = reader.ReadFloat("f");
     d   = reader.ReadDouble("d");
     str = reader.ReadString("str");
     p   = reader.ReadPortable <InnerPortable>("p");
 }
Пример #3
0
 internal MainPortable(byte b, bool bo, char c, short s, int i, long l, float f, double d, string str,
                       InnerPortable p)
 {
     this.b   = b;
     this.bo  = bo;
     this.c   = c;
     this.s   = s;
     this.i   = i;
     this.l   = l;
     this.f   = f;
     this.d   = d;
     this.str = str;
     this.p   = p;
 }