Compilation.CreateFunctionPointerTypeSymbol Metodo

Definizione

Overload

CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>)

Restituisce un nuovo oggetto IFunctionPointerTypeSymbol che rappresenta un tipo di puntatore a funzione associato ai tipi in questa compilazione.

CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>, SignatureCallingConvention, ImmutableArray<INamedTypeSymbol>)

Restituisce un nuovo oggetto IFunctionPointerTypeSymbol che rappresenta un tipo di puntatore a funzione associato ai tipi in questa compilazione.

CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>)

Source:
Compilation.cs

Restituisce un nuovo oggetto IFunctionPointerTypeSymbol che rappresenta un tipo di puntatore a funzione associato ai tipi in questa compilazione.

public Microsoft.CodeAnalysis.IFunctionPointerTypeSymbol CreateFunctionPointerTypeSymbol (Microsoft.CodeAnalysis.ITypeSymbol returnType, Microsoft.CodeAnalysis.RefKind returnRefKind, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> parameterTypes, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.RefKind> parameterRefKinds);
member this.CreateFunctionPointerTypeSymbol : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.RefKind * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.RefKind> -> Microsoft.CodeAnalysis.IFunctionPointerTypeSymbol
Public Function CreateFunctionPointerTypeSymbol (returnType As ITypeSymbol, returnRefKind As RefKind, parameterTypes As ImmutableArray(Of ITypeSymbol), parameterRefKinds As ImmutableArray(Of RefKind)) As IFunctionPointerTypeSymbol

Parametri

returnType
ITypeSymbol
returnRefKind
RefKind
parameterTypes
ImmutableArray<ITypeSymbol>
parameterRefKinds
ImmutableArray<RefKind>

Restituisce

Eccezioni

Se la compilazione è una compilazione VisualBasic.

Se:

  • Out viene passato come returnRefKind.
  • parameterTypes e parameterRefKinds non hanno la stessa lunghezza.

Se returnType è nullo se parameterTypes o parameterRefKinds sono predefiniti oppure se uno dei tipi in parameterTypes è Null.

Si applica a

CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>, SignatureCallingConvention, ImmutableArray<INamedTypeSymbol>)

Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs

Restituisce un nuovo oggetto IFunctionPointerTypeSymbol che rappresenta un tipo di puntatore a funzione associato ai tipi in questa compilazione.

public Microsoft.CodeAnalysis.IFunctionPointerTypeSymbol CreateFunctionPointerTypeSymbol (Microsoft.CodeAnalysis.ITypeSymbol returnType, Microsoft.CodeAnalysis.RefKind returnRefKind, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> parameterTypes, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.RefKind> parameterRefKinds, System.Reflection.Metadata.SignatureCallingConvention callingConvention = System.Reflection.Metadata.SignatureCallingConvention.Default, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.INamedTypeSymbol> callingConventionTypes = default);
member this.CreateFunctionPointerTypeSymbol : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.RefKind * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.RefKind> * System.Reflection.Metadata.SignatureCallingConvention * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.INamedTypeSymbol> -> Microsoft.CodeAnalysis.IFunctionPointerTypeSymbol
Public Function CreateFunctionPointerTypeSymbol (returnType As ITypeSymbol, returnRefKind As RefKind, parameterTypes As ImmutableArray(Of ITypeSymbol), parameterRefKinds As ImmutableArray(Of RefKind), Optional callingConvention As SignatureCallingConvention = System.Reflection.Metadata.SignatureCallingConvention.Default, Optional callingConventionTypes As ImmutableArray(Of INamedTypeSymbol) = Nothing) As IFunctionPointerTypeSymbol

Parametri

returnType
ITypeSymbol
returnRefKind
RefKind
parameterTypes
ImmutableArray<ITypeSymbol>
parameterRefKinds
ImmutableArray<RefKind>
callingConvention
SignatureCallingConvention
callingConventionTypes
ImmutableArray<INamedTypeSymbol>

Restituisce

Eccezioni

Se la compilazione è una compilazione VisualBasic.

Se:

  • Out viene passato come returnRefKind.
  • parameterTypes e parameterRefKinds non hanno la stessa lunghezza.

Se returnType è nullo se parameterTypes o parameterRefKinds sono predefiniti oppure se uno dei tipi in parameterTypes è Null.

Si applica a