Determines whether the specified object is equal to the current instance.
- value
- The object to compare with the current instance.
true if value is an instance of System.Text.Encoding and is equal to the current instance; otherwise, false.
Two instances of System.Text.Encoding are considered equal if they correspond to the same code page and their EncoderFallback and DecoderFallback objects are equal. In particular, derived code pages all have a code page of 0 and their fallbacks are normally null (Nothing in Visual Basic .NET). Thus they are all considered equal to one another. One consequence is that when Encoding.Equals(object) is used to populate a hash table, all derived encodings compare equal and fall into the same hash table slot.