Bagikan melalui


Compilation.CreateAnonymousTypeSymbol Metode

Definisi

Overload

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

Mengembalikan simbol jenis anonim baru dengan jenis anggota, nama, dan lokasi sumber yang diberikan. Anggota jenis anonim akan dibaca secara default. Properti bisa-tulis didukung di VB dan dapat dibuat dengan meneruskan false di lokasi yang sesuai di memberIsReadOnly.

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

Mengembalikan simbol jenis anonim baru dengan jenis anggota, nama, lokasi sumber, dan anotasi yang dapat diubah ke null. Anggota jenis anonim akan dibaca secara default. Properti bisa-tulis didukung di VB dan dapat dibuat dengan meneruskan false di lokasi yang sesuai di memberIsReadOnly.

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

Mengembalikan simbol jenis anonim baru dengan jenis anggota, nama, dan lokasi sumber yang diberikan. Anggota jenis anonim akan dibaca secara default. Properti bisa-tulis didukung di VB dan dapat dibuat dengan meneruskan false di lokasi yang sesuai di memberIsReadOnly.

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

Parameter

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

Mengembalikan

Keterangan

Kelebihan beban ini untuk kompatibilitas mundur. Jangan hapus.

Berlaku untuk

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

Mengembalikan simbol jenis anonim baru dengan jenis anggota, nama, lokasi sumber, dan anotasi yang dapat diubah ke null. Anggota jenis anonim akan dibaca secara default. Properti bisa-tulis didukung di VB dan dapat dibuat dengan meneruskan false di lokasi yang sesuai di memberIsReadOnly.

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

Parameter

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

Mengembalikan

Berlaku untuk