TypeName.GetGenericArguments Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
If this TypeName represents a constructed generic type, returns an array
of all the generic arguments. Otherwise it returns an empty array.
public:
System::Collections::Immutable::ImmutableArray<System::Reflection::Metadata::TypeName ^> GetGenericArguments();
public System.Collections.Immutable.ImmutableArray<System.Reflection.Metadata.TypeName> GetGenericArguments ();
member this.GetGenericArguments : unit -> System.Collections.Immutable.ImmutableArray<System.Reflection.Metadata.TypeName>
Public Function GetGenericArguments () As ImmutableArray(Of TypeName)
Returns
Remarks
For example, given "Dictionary<string, int>", returns a 2-element array containing
string and int.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.