주 메뉴 열기

wwiki β

바뀜

Constraints on type parameters

34 바이트 추가됨, 2021년 5월 24일 (월) 22:14
편집 요약 없음
System.Text.StringBuilder sb = new System.Text.StringBuilder("target");
string s2 = sb.ToString();
// 이게 false라는 거임
OpEqualsTest<string>(s1, s2);
}
</syntaxhighlight>값 일치는 where T : IEqualtable<T> 또는 where T : IComparable<T> 제약조건을 적용하고 ??????적용해야 한다.
=== Constraining multiple parameters ===
편집
2,431