public bool Equals(PeerDataFilter other)
 {
     return(other != null &&
            String.IsNullOrEmpty(peerType) ? String.IsNullOrEmpty(other.peerType) : peerType == other.peerType &&
            String.IsNullOrEmpty(peerName) ? String.IsNullOrEmpty(other.peerName) : peerName == other.peerName &&
            passwordProtected == other.passwordProtected &&
            String.IsNullOrEmpty(comment) ? String.IsNullOrEmpty(other.comment) : comment == other.comment &&
            String.IsNullOrEmpty(platform) ? String.IsNullOrEmpty(other.platform) : platform == other.platform);
 }
 public void WritePeerDataFilter(PeerDataFilter value)
 {
     value._Write(_buffer);
 }