NullableExtension Class
Implements a markup extension that returns an instance of System.Nullable<T> using the specified System.Type.
public class NullableExtension : MarkupExtension
- Inheritance:
- System.Object MarkupExtension Object
Remarks
This class is a markup extension implementation. Markup extension classes exist mainly to provide infrastructure support for some aspect of the WPF XAML processor implementation.
Constructors
NullableExtension(Type)
Initializes a new instance of the NullableExtension class using the specified System.Type.
public NullableExtension(Type typeArgument)
Parameter | Type | Description |
---|---|---|
typeArgument | System.Type | The System.Type used as a parameter to create an instance of System.Nullable<T>. |
Properties
TypeArgument
Gets the System.Type used as a parameter to create an instance of System.Nullable<T>.
public Type TypeArgument { get; }
Property Value
- System.Type:
The System.Type used as a parameter to create an instance of System.Nullable<T>.
Methods
ProvideValue(IServiceProvider)
Creates and returns a nullable System.Type based on the current state of this object. extension.
public override object ProvideValue(IServiceProvider serviceProvider)
Parameter | Type | Description |
---|---|---|
serviceProvider | System.IServiceProvider | Object that can provide services for the markup extension. |
Returns
- System.Object:
A new nullable System.Type.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()