System::Collections::Generic::KeyValuePair 클래스

KeyValuePair class

키와 값의 쌍. 이 타입은 스택에 할당하고 값 또는 참조로 함수에 전달해야 합니다. 이 타입의 객체를 관리하기 위해 System::SmartPtr 클래스를 절대 사용하지 마세요.

template<typename TKey,typename TValue>class KeyValuePair

메서드

메서드설명
get_Key() const키를 가져옵니다.
get_Value() const값을 가져옵니다.
GetHashCode() const키와 값의 해시를 XOR하여 키-값 쌍의 해시를 계산합니다.
IsNull() const항상 false를 반환합니다.
KeyValuePair()널 키-값 쌍 초기화자.
KeyValuePair(const TKey&, const TValue&)생성자.
KeyValuePair(const std::pair<OtherK, OtherV>&)형 변환 생성자.
operator<(const KeyValuePair&) constIComparer<KeyValuePair<TKey, TValue» 를 상속받은 클래스용 패치이며, 아무것도 비교하지 않습니다.
ToString() const키-값 쌍을 문자열로 변환합니다.

또 보기