次の方法で共有


Compilation.CreateAnonymousTypeSymbol メソッド

定義

オーバーロード

CreateAnonymousTypeSymbol(ImmutableArray<ITypeSymbol>, ImmutableArray<String>, ImmutableArray<Boolean>, ImmutableArray<Location>)

指定したメンバーの型、名前、およびソースの場所を含む新しい匿名型シンボルを返します。 匿名型のメンバーは、既定で読み取り専用になります。 書き込み可能なプロパティは VB でサポートされており、falsememberIsReadOnly.

CreateAnonymousTypeSymbol(ImmutableArray<ITypeSymbol>, ImmutableArray<String>, ImmutableArray<Boolean>, ImmutableArray<Location>, ImmutableArray<NullableAnnotation>)

指定されたメンバー型、名前、ソースの場所、および null 許容注釈を含む新しい匿名型シンボルを返します。 匿名型のメンバーは、既定で読み取り専用になります。 書き込み可能なプロパティは VB でサポートされており、falsememberIsReadOnly.

CreateAnonymousTypeSymbol(ImmutableArray<ITypeSymbol>, ImmutableArray<String>, ImmutableArray<Boolean>, ImmutableArray<Location>)

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

指定したメンバーの型、名前、およびソースの場所を含む新しい匿名型シンボルを返します。 匿名型のメンバーは、既定で読み取り専用になります。 書き込み可能なプロパティは VB でサポートされており、falsememberIsReadOnly.

public Microsoft.CodeAnalysis.INamedTypeSymbol CreateAnonymousTypeSymbol (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> memberTypes, System.Collections.Immutable.ImmutableArray<string> memberNames, System.Collections.Immutable.ImmutableArray<bool> memberIsReadOnly = default, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Location> memberLocations = default);
public Microsoft.CodeAnalysis.INamedTypeSymbol CreateAnonymousTypeSymbol (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> memberTypes, System.Collections.Immutable.ImmutableArray<string> memberNames, System.Collections.Immutable.ImmutableArray<bool> memberIsReadOnly, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Location> memberLocations);
member this.CreateAnonymousTypeSymbol : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> * System.Collections.Immutable.ImmutableArray<string> * System.Collections.Immutable.ImmutableArray<bool> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Location> -> Microsoft.CodeAnalysis.INamedTypeSymbol
Public Function CreateAnonymousTypeSymbol (memberTypes As ImmutableArray(Of ITypeSymbol), memberNames As ImmutableArray(Of String), Optional memberIsReadOnly As ImmutableArray(Of Boolean) = Nothing, Optional memberLocations As ImmutableArray(Of Location) = Nothing) As INamedTypeSymbol
Public Function CreateAnonymousTypeSymbol (memberTypes As ImmutableArray(Of ITypeSymbol), memberNames As ImmutableArray(Of String), memberIsReadOnly As ImmutableArray(Of Boolean), memberLocations As ImmutableArray(Of Location)) As INamedTypeSymbol

パラメーター

memberNames
ImmutableArray<String>
memberIsReadOnly
ImmutableArray<Boolean>
memberLocations
ImmutableArray<Location>

戻り値

注釈

このオーバーロードは、下位互換性を確保するためのものです。 削除しないでください。

適用対象

CreateAnonymousTypeSymbol(ImmutableArray<ITypeSymbol>, ImmutableArray<String>, ImmutableArray<Boolean>, ImmutableArray<Location>, ImmutableArray<NullableAnnotation>)

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

指定されたメンバー型、名前、ソースの場所、および null 許容注釈を含む新しい匿名型シンボルを返します。 匿名型のメンバーは、既定で読み取り専用になります。 書き込み可能なプロパティは VB でサポートされており、falsememberIsReadOnly.

public Microsoft.CodeAnalysis.INamedTypeSymbol CreateAnonymousTypeSymbol (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> memberTypes, System.Collections.Immutable.ImmutableArray<string> memberNames, System.Collections.Immutable.ImmutableArray<bool> memberIsReadOnly = default, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Location> memberLocations = default, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.NullableAnnotation> memberNullableAnnotations = default);
member this.CreateAnonymousTypeSymbol : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> * System.Collections.Immutable.ImmutableArray<string> * System.Collections.Immutable.ImmutableArray<bool> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Location> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.NullableAnnotation> -> Microsoft.CodeAnalysis.INamedTypeSymbol
Public Function CreateAnonymousTypeSymbol (memberTypes As ImmutableArray(Of ITypeSymbol), memberNames As ImmutableArray(Of String), Optional memberIsReadOnly As ImmutableArray(Of Boolean) = Nothing, Optional memberLocations As ImmutableArray(Of Location) = Nothing, Optional memberNullableAnnotations As ImmutableArray(Of NullableAnnotation) = Nothing) As INamedTypeSymbol

パラメーター

memberNames
ImmutableArray<String>
memberIsReadOnly
ImmutableArray<Boolean>
memberLocations
ImmutableArray<Location>
memberNullableAnnotations
ImmutableArray<NullableAnnotation>

戻り値

適用対象