Share via


Compilation.CreateAnonymousTypeSymbol Método

Definición

Sobrecargas

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

Devuelve un nuevo símbolo de tipo anónimo con los tipos de miembro, los nombres y las ubicaciones de origen especificados. Los miembros de tipo anónimo se leerán de forma predeterminada. Las propiedades grabables se admiten en VB y se pueden crear pasando false las ubicaciones adecuadas en memberIsReadOnly.

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

Devuelve un nuevo símbolo de tipo anónimo con los tipos de miembro, nombres, ubicaciones de origen y anotaciones que aceptan valores NULL especificados. Los miembros de tipo anónimo se leerán de forma predeterminada. Las propiedades grabables se admiten en VB y se pueden crear pasando false las ubicaciones adecuadas en 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

Devuelve un nuevo símbolo de tipo anónimo con los tipos de miembro, los nombres y las ubicaciones de origen especificados. Los miembros de tipo anónimo se leerán de forma predeterminada. Las propiedades grabables se admiten en VB y se pueden crear pasando false las ubicaciones adecuadas en 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

Parámetros

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

Devoluciones

Comentarios

Esta sobrecarga es para la compatibilidad con versiones anteriores. No quite.

Se aplica a

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

Devuelve un nuevo símbolo de tipo anónimo con los tipos de miembro, nombres, ubicaciones de origen y anotaciones que aceptan valores NULL especificados. Los miembros de tipo anónimo se leerán de forma predeterminada. Las propiedades grabables se admiten en VB y se pueden crear pasando false las ubicaciones adecuadas en 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

Parámetros

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

Devoluciones

Se aplica a