Compilation.CreateFunctionPointerTypeSymbol Method

Definition

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.

C#
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);

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

Roslyn 3.7.0
Produkt Versioner
Roslyn 3.7.0

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
Source:
Compilation.cs
Source:
Compilation.cs

Returns a new IFunctionPointerTypeSymbol representing a function pointer type tied to types in this Compilation.

C#
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);

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.

Applies to

Roslyn 4.13.0 och andra versioner
Produkt Versioner
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0