menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NullableHelper - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class NullableHelper

    A helper class that provides the functionalities for converting the object to the specified type. This will return the null if the object cannot be converted to specified type.

    Inheritance
    System.Object
    NullableHelper
    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.WinForms.Core.Utils
    Assembly: Syncfusion.Core.WinForms.dll
    Syntax
    public static class NullableHelper

    Methods

    ChangeType(Object, Type)

    Returns an object of the specified type whose value is equivalent to the specified object.

    Declaration
    public static object ChangeType(object value, Type type)
    Parameters
    Type Name Description
    System.Object value

    The object that need to be convert.

    System.Type type

    The target System.Type. It can also be a System.Nullable type.

    Returns
    Type Description
    System.Object

    Returns the converted value as object.

    ChangeType(Object, Type, IFormatProvider)

    Returns an object of the specified type whose value is equivalent to the specified object.

    Declaration
    public static object ChangeType(object value, Type type, IFormatProvider provider)
    Parameters
    Type Name Description
    System.Object value

    The value that need to be converted to the target type.

    System.Type type

    The target System.Type.It can also be a System.Nullable type.

    System.IFormatProvider provider

    The System.IFormatProvider object.

    Returns
    Type Description
    System.Object

    Returns null when the object is not converted to the target type otherwise return the converted value.

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