public override bool Equals(object obj) { if (obj == null || obj.GetType() != GetType()) { return(false); } var otherLocalType = (LocalType2)obj; return(Attribute1.Equals(otherLocalType.Attribute1) && Attribute2 == otherLocalType.Attribute2); }
private void _read() { _tag = m_io.ReadU2le(); _lenBody = m_io.ReadU2le(); switch (Tag) { case 1: { __raw_body = m_io.ReadBytes(LenBody); var io___raw_body = new KaitaiStream(__raw_body); _body = new Attribute1(io___raw_body, this, m_root); break; } default: { _body = m_io.ReadBytes(LenBody); break; } } }