Table of Contents

Class NullValueAttribute

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

Associates a constant with the null value of a property or a field of a simple type.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public sealed class NullValueAttribute : Attribute
Inheritance
NullValueAttribute
Inherited Members

Constructors

NullValueAttribute(bool)

Initializes a new instance of the NullValueAttribute class with the specified Boolean constant.

public NullValueAttribute(bool value)

Parameters

value bool

A bool value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.

NullValueAttribute(byte)

Initializes a new instance of the NullValueAttribute class with the specified 8-bit unsigned integer constant.

public NullValueAttribute(byte value)

Parameters

value byte

A byte value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.

NullValueAttribute(char)

Initializes a new instance of the NullValueAttribute class with the specified Unicode character constant.

public NullValueAttribute(char value)

Parameters

value char

A char value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.

NullValueAttribute(double)

Initializes a new instance of the NullValueAttribute class with the specified double-precision floating point number constant.

public NullValueAttribute(double value)

Parameters

value double

A double value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.

NullValueAttribute(short)

Initializes a new instance of the NullValueAttribute class with the specified 16-bit signed integer constant.

public NullValueAttribute(short value)

Parameters

value short

A short value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.

NullValueAttribute(int)

Initializes a new instance of the NullValueAttribute class with the specified 32-bit signed integer constant.

public NullValueAttribute(int value)

Parameters

value int

A int value associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.

NullValueAttribute(long)

Initializes a new instance of the NullValueAttribute class with the specified 64-bit signed integer constant.

public NullValueAttribute(long value)

Parameters

value long

A long value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.

NullValueAttribute(object)

Initializes a new instance of the NullValueAttribute class with the object type constant.

public NullValueAttribute(object value)

Parameters

value object

A object value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.

NullValueAttribute(float)

Initializes a new instance of the NullValueAttribute class with the specified single-precision floating point number constant.

public NullValueAttribute(float value)

Parameters

value float

A float value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.

NullValueAttribute(string)

Initializes a new instance of the NullValueAttribute class with the specified string constant.

public NullValueAttribute(string value)

Parameters

value string

A string value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.

NullValueAttribute(Type, string)

Initializes a new instance of the NullValueAttribute class and converts the specified value into the specified type.

public NullValueAttribute(Type type, string value)

Parameters

type Type

A Type which represents the type that the value associated with the null value of a property or a field is converted to.

value string

A string value which is converted into the specified type. This value is assigned to the NullValueAttribute.Value property.

Properties

Value

Gets or sets a null value for a property or a field.

public object Value { get; set; }

Property Value

object

A object value which is associated with a null value for a property or a field.