public override int GetHashCode() { unchecked { var hashCode = ByteData != null?ByteData.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (StringData != null ? StringData.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Encoding != null ? Encoding.GetHashCode() : 0); return(hashCode); } }