menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Nullable - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Nullable

    Class which represents the generic type nullable values.

    Inheritance
    System.Object
    Nullable
    Namespace: Syncfusion.DataSource
    Assembly: Syncfusion.DataSource.Portable.dll
    Syntax
    public class Nullable : Object

    Constructors

    Nullable()

    Declaration
    public Nullable()

    Methods

    Compare<T>(Nullable<T>, Nullable<T>)

    Helper method to compare the nullable objects.

    Declaration
    public static int Compare<T>(Nullable<T> nullable1, Nullable<T> nullable2)
        where T : struct, ValueType
    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
    public static bool Equals<T>(Nullable<T> nullable1, Nullable<T> nullable2)
        where T : struct, ValueType
    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

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved