Class Nullable
Class which represents the generic type nullable values.
Inheritance
System.Object
Nullable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.DataSource
Assembly: Syncfusion.DataSource.WinForms.dll
Syntax
[ComVisible(true)]
public class Nullable
Constructors
Nullable()
Declaration
public Nullable()
Methods
Compare<T>(Nullable<T>, Nullable<T>)
Helper method to compare the nullable objects.
Declaration
[ComVisible(true)]
public static int Compare<T>(Nullable<T> nullable1, Nullable<T> nullable2)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
Nullable<T> | nullable1 | Represents the first nullable object. |
Nullable<T> | nullable2 | Represents the second nullable object. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the integer value accordingly. |
Type Parameters
Name | Description |
---|---|
T | Represents the generic type parameter. |
Equals<T>(Nullable<T>, Nullable<T>)
Helper method to check whether the obtained nullable values are equal or not.
Declaration
[ComVisible(true)]
public static bool Equals<T>(Nullable<T> nullable1, Nullable<T> nullable2)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
Nullable<T> | nullable1 | Represents the first nullable object. |
Nullable<T> | nullable2 | Represents the second nullable object. |
Returns
Type | Description |
---|---|
System.Boolean | Returns the boolean value accordingly. |
Type Parameters
Name | Description |
---|---|
T | Represents the generic type parameter. |
GetUnderlyingType(Type)
Helper method to get the underlying type of the nullable.
Declaration
public static Type GetUnderlyingType(Type nullableType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | nullableType | Represents the specified type. |
Returns
Type | Description |
---|---|
System.Type | f the type provided is not a Nullable Type, return null. Otherwise, returns the underlying type of the Nullable type |