NullableExtension Class
Implements a markup extension that returns an instance of Nullable<T> using the specified Type.
public class NullableExtension : MarkupExtension
- Inheritance:
- 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)
Implements a markup extension that returns an instance of Nullable<T> using the specified Type.
public NullableExtension(Type typeArgument)
| Parameter | Type | Description |
|---|---|---|
| typeArgument | Type | The Type used as a parameter to create an instance of Nullable<T>. |
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.
Properties
TypeArgument
The Type used as a parameter to create an instance of Nullable<T>.
Methods
ProvideValue(IServiceProvider)
Creates and returns a nullable Type based on the current state of this object. extension.
public override object ProvideValue(IServiceProvider serviceProvider)
| Parameter | Type | Description |
|---|---|---|
| serviceProvider | IServiceProvider | Object that can provide services for the markup extension. |
Returns
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()