Compilation.CreateFunctionPointerTypeSymbol Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>) |
Returns a new IFunctionPointerTypeSymbol representing a function pointer type tied to types in this Compilation. |
CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>, SignatureCallingConvention, ImmutableArray<INamedTypeSymbol>) |
Returns a new IFunctionPointerTypeSymbol representing a function pointer type tied to types in this Compilation. |
CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>)
- Source:
- Compilation.cs
Returns a new IFunctionPointerTypeSymbol representing a function pointer type tied to types in this Compilation.
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
Parameters
- returnType
- ITypeSymbol
- returnRefKind
- RefKind
- parameterTypes
- ImmutableArray<ITypeSymbol>
- parameterRefKinds
- ImmutableArray<RefKind>
Returns
Exceptions
If the compilation is a VisualBasic compilation.
If:
- Out is passed as the returnRefKind.
- parameterTypes and parameterRefKinds do not have the same length.
If returnType is null
, or if parameterTypes or parameterRefKinds are default,
or if any of the types in parameterTypes are null.
Applies to
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
Returns a new IFunctionPointerTypeSymbol representing a function pointer type tied to types in this Compilation.
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
Parameters
- returnType
- ITypeSymbol
- returnRefKind
- RefKind
- parameterTypes
- ImmutableArray<ITypeSymbol>
- parameterRefKinds
- ImmutableArray<RefKind>
- callingConvention
- SignatureCallingConvention
- callingConventionTypes
- ImmutableArray<INamedTypeSymbol>
Returns
Exceptions
If the compilation is a VisualBasic compilation.
If:
- Out is passed as the returnRefKind.
- parameterTypes and parameterRefKinds do not have the same length.
If returnType is null
, or if parameterTypes or parameterRefKinds are default,
or if any of the types in parameterTypes are null.