Tuple<T1> 클래스
정의
1개의 요소로 구성된 튜플 또는 singleton을 나타냅니다.Represents a 1-tuple, or singleton.
generic <typename T1>
public ref class Tuple : IComparable, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable
generic <typename T1>
public ref class Tuple : IComparable, System::Collections::IStructuralComparable, System::Collections::IStructuralEquatable, System::Runtime::CompilerServices::ITuple
public class Tuple<T1> : IComparable, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable
public class Tuple<T1> : IComparable, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.Runtime.CompilerServices.ITuple
[System.Serializable]
public class Tuple<T1> : IComparable, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable
type Tuple<'T1> = class
interface IStructuralComparable
interface IStructuralEquatable
interface IComparable
type Tuple<'T1> = class
interface IStructuralComparable
interface IStructuralEquatable
interface IComparable
interface ITuple
[<System.Serializable>]
type Tuple<'T1> = class
interface IStructuralEquatable
interface IStructuralComparable
interface IComparable
[<System.Serializable>]
type Tuple<'T1> = class
interface IStructuralEquatable
interface IStructuralComparable
interface IComparable
interface ITuple
Public Class Tuple(Of T1)
Implements IComparable, IStructuralComparable, IStructuralEquatable
Public Class Tuple(Of T1)
Implements IComparable, IStructuralComparable, IStructuralEquatable, ITuple
형식 매개 변수
- T1
튜플의 유일한 구성 요소 형식입니다.The type of the tuple's only component.
- 상속
-
Tuple<T1>
- 특성
- 구현
설명
튜플은 값의 특정 개수와 시퀀스를 포함 하는 데이터 구조입니다.A tuple is a data structure that has a specific number and sequence of values. Tuple<T1>클래스는 단일 튜플 또는 단일 구성 요소가 있는 튜플 인 singleton을 나타냅니다.The Tuple<T1> class represents a 1-tuple, or singleton, which is a tuple that has a single component. 단일 애플리케이션 개발에 비교적 드물게 사용 됩니다.A singleton is used comparatively rarely in application development.
Tuple<T1> Tuple<T1> 생성자 또는 정적 메서드를 호출 하 여 개체를 인스턴스화할 수 있습니다 Tuple.Create .You can instantiate a Tuple<T1> object by calling either the Tuple<T1> constructor or the static Tuple.Create method. 읽기 전용 인스턴스 속성을 사용 하 여 튜플의 단일 구성 요소 값을 검색할 수 있습니다 Item1 .You can retrieve the value of the tuple's single component by using the read-only Item1 instance property.
생성자
Tuple<T1>(T1) |
Tuple<T1> 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the Tuple<T1> class. |
속성
Item1 |
Tuple<T1> 개체의 단일 구성 요소 값을 가져옵니다.Gets the value of the Tuple<T1> object's single component. |
메서드
Equals(Object) |
현재 Tuple<T1> 개체가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.Returns a value that indicates whether the current Tuple<T1> object is equal to a specified object. |
GetHashCode() |
현재 Tuple<T1> 개체에 대한 해시 코드를 반환합니다.Returns the hash code for the current Tuple<T1> object. |
GetType() |
현재 인스턴스의 Type을 가져옵니다.Gets the Type of the current instance. (다음에서 상속됨 Object) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object. (다음에서 상속됨 Object) |
ToString() |
이 Tuple<T1> 인스턴스의 값을 나타내는 문자열을 반환합니다.Returns a string that represents the value of this Tuple<T1> instance. |
명시적 인터페이스 구현
IComparable.CompareTo(Object) |
현재 Tuple<T1> 개체와 지정된 개체를 비교하고 정렬 순서에서 현재 개체의 위치가 지정된 개체보다 앞인지, 뒤인지 또는 동일한지를 나타내는 정수를 반환합니다.Compares the current Tuple<T1> object to a specified object, and returns an integer that indicates whether the current object is before, after, or in the same position as the specified object in the sort order. |
IStructuralComparable.CompareTo(Object, IComparer) |
지정된 비교자를 사용하여 현재 Tuple<T1> 개체와 지정된 개체를 비교하고 정렬 순서에서 현재 개체의 위치가 지정된 개체보다 앞인지, 뒤인지 또는 동일한지를 나타내는 정수를 반환합니다.Compares the current Tuple<T1> object to a specified object by using a specified comparer, and returns an integer that indicates whether the current object is before, after, or in the same position as the specified object in the sort order. |
IStructuralEquatable.Equals(Object, IEqualityComparer) |
지정된 비교 메서드를 기반으로 현재 Tuple<T1> 개체가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.Returns a value that indicates whether the current Tuple<T1> object is equal to a specified object based on a specified comparison method. |
IStructuralEquatable.GetHashCode(IEqualityComparer) |
지정된 계산 메서드를 사용하여 현재 Tuple<T1> 개체에 대한 해시 코드를 계산합니다.Calculates the hash code for the current Tuple<T1> object by using a specified computation method. |
ITuple.Item[Int32] |
|
ITuple.Length |
|
확장 메서드
Deconstruct<T1>(Tuple<T1>, T1) |
1개 요소가 포함된 튜플을 개별 변수로 분해합니다.Deconstructs a tuple with 1 element into a separate variable. |
ToValueTuple<T1>(Tuple<T1>) |
|