Esempio n. 1
0
 /// <summary>Required by test code, below.</summary>
 public override bool Equals(object o)
 {
     if (!(o is TestWritable.SimpleWritable))
     {
         return(false);
     }
     TestWritable.SimpleWritable other = (TestWritable.SimpleWritable)o;
     return(this.state == other.state);
 }
Esempio n. 2
0
 /// <exception cref="System.IO.IOException"/>
 public static TestWritable.SimpleWritable Read(BinaryReader reader)
 {
     TestWritable.SimpleWritable result = new TestWritable.SimpleWritable();
     result.ReadFields(@in);
     return(result);
 }