Type.Namespace Property
Gets the namespace of the Type.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.StringThe namespace of the Type; null if the current instance has no namespace or represents a generic parameter.
Implements
_Type.NamespaceA namespace is a logical design-time naming convenience, used mainly to define scope in an application and organize classes and other types in a single hierarchical structure. From the viewpoint of the runtime, there are no namespaces.
If the current Type represents a constructed generic type, this property returns the namespace that contains the generic type definition. Similarly, if the current Type represents a generic parameter T, this property returns the namespace that contains the generic type definition that defines T.
If the current Type object represents a generic parameter, this property returns null.
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1