다음을 통해 공유


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

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

매개 변수

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

반환

예외

컴파일이 VisualBasic 컴파일인 경우

경우:

  • Out 는 returnRefKind로 전달됩니다.
  • parameterTypes 및 parameterRefKinds의 길이는 같지 않습니다.

returnType이 null거나 parameterTypes 또는 parameterRefKinds가 기본값이거나 parameterTypes의 형식이 null인 경우

적용 대상

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

이 컴파일의 형식에 연결된 함수 포인터 형식을 나타내는 새 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);
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

매개 변수

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인 경우

적용 대상