다음을 통해 공유


CSharpExtensions.IndexOf 메서드

정의

오버로드

IndexOf(SyntaxTokenList, SyntaxKind)

토큰 목록에서 지정된 종류의 첫 번째 토큰 인덱스입니다.

IndexOf(SyntaxTriviaList, SyntaxKind)

퀴즈 목록에서 지정된 종류의 첫 번째 퀴즈 인덱스 값을 반환합니다.

IndexOf<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

노드 목록에서 지정된 종류의 첫 번째 노드의 인덱스 값을 반환합니다.

IndexOf<TNode>(SyntaxList<TNode>, SyntaxKind)

노드 목록에서 지정된 종류의 첫 번째 노드의 인덱스 값을 반환합니다.

IndexOf(SyntaxTokenList, SyntaxKind)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

토큰 목록에서 지정된 종류의 첫 번째 토큰 인덱스입니다.

public:
[System::Runtime::CompilerServices::Extension]
 static int IndexOf(Microsoft::CodeAnalysis::SyntaxTokenList list, Microsoft::CodeAnalysis::CSharp::SyntaxKind kind);
public static int IndexOf (this Microsoft.CodeAnalysis.SyntaxTokenList list, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind);
static member IndexOf : Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.SyntaxKind -> int
<Extension()>
Public Function IndexOf (list As SyntaxTokenList, kind As SyntaxKind) As Integer

매개 변수

list
SyntaxTokenList

토큰 목록입니다.

kind
SyntaxKind

찾을 SyntaxKind입니다.

반환

목록에 일치하는 kind토큰이 포함되어 있으면 음수가 아닌 인덱스를 반환하고, 그렇지 않으면 -1을 반환합니다.

적용 대상

IndexOf(SyntaxTriviaList, SyntaxKind)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

퀴즈 목록에서 지정된 종류의 첫 번째 퀴즈 인덱스 값을 반환합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static int IndexOf(Microsoft::CodeAnalysis::SyntaxTriviaList list, Microsoft::CodeAnalysis::CSharp::SyntaxKind kind);
public static int IndexOf (this Microsoft.CodeAnalysis.SyntaxTriviaList list, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind);
static member IndexOf : Microsoft.CodeAnalysis.SyntaxTriviaList * Microsoft.CodeAnalysis.CSharp.SyntaxKind -> int
<Extension()>
Public Function IndexOf (list As SyntaxTriviaList, kind As SyntaxKind) As Integer

매개 변수

list
SyntaxTriviaList

퀴즈 목록입니다.

kind
SyntaxKind

찾을 SyntaxKind입니다.

반환

목록에 일치하는 kind퀴즈가 포함되어 있으면 음수가 아닌 인덱스를 반환하고, 그렇지 않으면 -1을 반환합니다.

적용 대상

IndexOf<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

노드 목록에서 지정된 종류의 첫 번째 노드의 인덱스 값을 반환합니다.

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static int IndexOf(Microsoft::CodeAnalysis::SeparatedSyntaxList<TNode> list, Microsoft::CodeAnalysis::CSharp::SyntaxKind kind);
public static int IndexOf<TNode> (this Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> list, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member IndexOf : Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * Microsoft.CodeAnalysis.CSharp.SyntaxKind -> int (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function IndexOf(Of TNode As SyntaxNode) (list As SeparatedSyntaxList(Of TNode), kind As SyntaxKind) As Integer

형식 매개 변수

TNode

매개 변수

list
SeparatedSyntaxList<TNode>

노드 목록입니다.

kind
SyntaxKind

찾을 SyntaxKind입니다.

반환

목록에 일치하는 kind노드가 포함되어 있으면 음수가 아닌 인덱스를 반환하고, 그렇지 않으면 -1을 반환합니다.

적용 대상

IndexOf<TNode>(SyntaxList<TNode>, SyntaxKind)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

노드 목록에서 지정된 종류의 첫 번째 노드의 인덱스 값을 반환합니다.

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static int IndexOf(Microsoft::CodeAnalysis::SyntaxList<TNode> list, Microsoft::CodeAnalysis::CSharp::SyntaxKind kind);
public static int IndexOf<TNode> (this Microsoft.CodeAnalysis.SyntaxList<TNode> list, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member IndexOf : Microsoft.CodeAnalysis.SyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * Microsoft.CodeAnalysis.CSharp.SyntaxKind -> int (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function IndexOf(Of TNode As SyntaxNode) (list As SyntaxList(Of TNode), kind As SyntaxKind) As Integer

형식 매개 변수

TNode

매개 변수

list
SyntaxList<TNode>

노드 목록입니다.

kind
SyntaxKind

찾을 SyntaxKind입니다.

반환

목록에 일치하는 kind노드가 포함되어 있으면 음수가 아닌 인덱스를 반환하고, 그렇지 않으면 -1을 반환합니다.

적용 대상