TypeName.GetGenericTypeDefinition 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.
Returns a TypeName object that represents a generic type name definition from which the current generic type name can be constructed.
public:
System::Reflection::Metadata::TypeName ^ GetGenericTypeDefinition();
public System.Reflection.Metadata.TypeName GetGenericTypeDefinition ();
member this.GetGenericTypeDefinition : unit -> System.Reflection.Metadata.TypeName
Public Function GetGenericTypeDefinition () As TypeName
Returns
Exceptions
The current type is not a generic type.
Remarks
Given "Dictionary<string, int>", this method returns the generic type definition "Dictionary<,>".
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.