영어로 읽기

다음을 통해 공유


IEqualityOperators<TSelf,TOther,TResult> 인터페이스

정의

두 값을 비교하여 같음을 결정하는 메커니즘을 정의합니다.

public interface IEqualityOperators<TSelf,TOther,TResult> where TSelf : IEqualityOperators<TSelf,TOther,TResult>

형식 매개 변수

TSelf

이 인터페이스를 구현하는 형식입니다.

TOther

TSelf비교할 형식입니다.

TResult

비교의 결과로 반환되는 형식입니다.

파생

연산자

Equality(TSelf, TOther)

두 값을 비교하여 같음을 확인합니다.

Inequality(TSelf, TOther)

두 값을 비교하여 같지 않음을 확인합니다.

적용 대상

제품 버전
.NET 7, 8, 9, 10