Compilation.CreateFunctionPointerTypeSymbol メソッド

定義

オーバーロード

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

このコンパイルで型に関連付けられている関数ポインター型を表す新しい IFunctionPointerTypeSymbol を返します。

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

このコンパイルで型に関連付けられている関数ポインター型を表す新しい IFunctionPointerTypeSymbol を返します。

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

ソース:
Compilation.cs

このコンパイルで型に関連付けられている関数ポインター型を表す新しい IFunctionPointerTypeSymbol を返します。

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

パラメーター

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

戻り値

例外

コンパイルが VisualBasic コンパイルの場合。

次の場合:

  • Out は returnRefKind として渡されます。
  • parameterTypes と parameterRefKinds の長さは同じではありません。

returnType が null、または parameterTypes または parameterRefKinds が既定の場合、または parameterTypes の型のいずれかが null の場合。

適用対象

Roslyn 3.7.0
製品 バージョン
Roslyn 3.7.0

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

ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs
ソース:
Compilation.cs

このコンパイルで型に関連付けられている関数ポインター型を表す新しい IFunctionPointerTypeSymbol を返します。

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

パラメーター

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

戻り値

例外

コンパイルが VisualBasic コンパイルの場合。

次の場合:

  • Out は returnRefKind として渡されます。
  • parameterTypes と parameterRefKinds の長さは同じではありません。

returnType が null、または parameterTypes または parameterRefKinds が既定の場合、または parameterTypes の型のいずれかが null の場合。

適用対象

Roslyn 4.9.2 およびその他のバージョン
製品 バージョン
Roslyn 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2