Esempio n. 1
0
        public static DummyPersistanceObject Read(BinaryReader br)
        {
            DummyPersistanceObject f = new DummyPersistanceObject();

            f.Bar1 = br.ReadInt32();
            f.Bar2 = br.SafeReadString();
            f.bar3 = new Guid(br.ReadBytes(16));
            f.Null = br.SafeReadString();
            return(f);
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            DummyPersistanceObject other = obj as DummyPersistanceObject;

            if (other != null)
            {
                return(Bar1 == other.Bar1 && Bar2 == other.Bar2 &&
                       Bar3 == other.Bar3 &&
                       this.Null == other.Null);
            }
            return(false);
        }