DOFTypeNullable ClassOpenDOF Object Access Library
Create a type that references another type or can take the value
null
.
Inheritance Hierarchy

SystemObject
  org.opendof.core.oalDOFType
    org.opendof.core.oalDOFTypeNullable

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
[SerializableAttribute]
public sealed class Nullable : DOFType

The DOFTypeNullable type exposes the following members.

Constructors

  NameDescription
Public methodDOFTypeNullable(DOFType)
Construct a nullable type from another (non-nullable) type.
Public methodDOFTypeNullable(DOFTypeContext, DOFPacket)
Construct a type from a packet.
Top
Methods

  NameDescription
Public methodEquals (Overrides DOFTypeEquals(Object).)
Public methodgetEncoding
Get the string encoding for the type.
(Inherited from DOFType.)
Public methodGetHashCode (Overrides DOFTypeGetHashCode.)
Public methodgetInstance (Overrides DOFTypegetInstance(DOFPacket).)
Public methodgetMaxLength
Get the maximum length of the type.
(Inherited from DOFType.)
Public methodgetMinLength
Get the minimum length of the type.
(Inherited from DOFType.)
Public methodgetSubtypes (Overrides DOFTypegetSubtypes.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodgetTypeID
Get the type identifier of this type.
(Inherited from DOFType.)
Public methodisDefined
Return whether of not the type is fully defined.
(Inherited from DOFType.)
Public methodmarshal (Overrides DOFTypemarshal(DOFTypeContext, DOFPacket).)
Public methodToString (Overrides DOFTypeToString.)
Top
Remarks

Create a type that references another type or can take the value
null
.

This class is a wrapper around other types, giving them the ability to accept

null
in addition to their normal values. The referenced type must may be partially defined, and in fact the nullable type is required in cases of self-referential types in order to avoid infinite values being required (there must be a nullable to break the cycle).
See Also

Reference