Equals() публичный Метод

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
Результат bool
Пример #1
0
 private bool needCompressWith(CompressionParameters parameters)
 {
     return(m_compressedData == null ||
            m_compressionParameters == null ||
            !m_compressionParameters.Equals(parameters));
 }
Пример #2
0
 private bool NeedCompressWith(CompressionParameters parameters)
 {
     return(m_compressedData is null ||
            m_compressionParameters?.Equals(parameters) != true);
 }