TypeName.GetElementType 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.
Gets the TypeName of the object encompassed or referred to by the current array, pointer, or reference type.
public:
System::Reflection::Metadata::TypeName ^ GetElementType();
public System.Reflection.Metadata.TypeName GetElementType ();
member this.GetElementType : unit -> System.Reflection.Metadata.TypeName
Public Function GetElementType () As TypeName
Returns
Exceptions
The current type is not an array, pointer or reference.
Remarks
For example, given "int[][]", unwraps the outermost array and returns "int[]".
Applies to
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.