CSharpExtensions.IndexOf Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
IndexOf(SyntaxTokenList, SyntaxKind) |
Devuelve el índice del primer token de un tipo especificado en la lista de tokens. |
IndexOf(SyntaxTriviaList, SyntaxKind) |
Devuelve el índice de la primera trivia de un tipo especificado en la lista de trivia. |
IndexOf<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind) |
Devuelve el índice del primer nodo de un tipo especificado en la lista de nodos. |
IndexOf<TNode>(SyntaxList<TNode>, SyntaxKind) |
Devuelve el índice del primer nodo de un tipo especificado en la lista de nodos. |
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
Devuelve el índice del primer token de un tipo especificado en la lista de tokens.
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
Parámetros
- list
- SyntaxTokenList
Lista de tokens.
- kind
- SyntaxKind
SyntaxKind que se va a buscar.
Devoluciones
Devuelve un índice no negativo si la lista contiene un token que coincide con kind
, -1 de lo contrario.
Se aplica a
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
Devuelve el índice de la primera trivia de un tipo especificado en la lista de trivia.
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
Parámetros
- list
- SyntaxTriviaList
Trivia list.
- kind
- SyntaxKind
SyntaxKind que se va a buscar.
Devoluciones
Devuelve un índice no negativo si la lista contiene una trivia que coincide con kind
, -1 de lo contrario.
Se aplica a
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
Devuelve el índice del primer nodo de un tipo especificado en la lista de nodos.
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
Parámetros de tipo
- TNode
Parámetros
Lista de nodos.
- kind
- SyntaxKind
SyntaxKind que se va a buscar.
Devoluciones
Devuelve un índice no negativo si la lista contiene un nodo que coincide con kind
, -1 de lo contrario.
Se aplica a
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
Devuelve el índice del primer nodo de un tipo especificado en la lista de nodos.
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
Parámetros de tipo
- TNode
Parámetros
- list
- SyntaxList<TNode>
Lista de nodos.
- kind
- SyntaxKind
SyntaxKind que se va a buscar.
Devoluciones
Devuelve un índice no negativo si la lista contiene un nodo que coincide con kind
, -1 de lo contrario.