menu

UWP

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

    Show / Hide Table of Contents

    Class TypeConverterHelper

    This class is used to convert the objects based on their data types.

    Inheritance
    System.Object
    TypeConverterHelper
    Namespace: Syncfusion.PivotAnalysis.UWP.Engine
    Assembly: Syncfusion.PivotAnalysis.UWP.dll
    Syntax
    public class TypeConverterHelper : Object

    Constructors

    TypeConverterHelper()

    Declaration
    public TypeConverterHelper()

    Methods

    AddParser<T>(TryParseMethod<T>)

    This method is used to add the current parser into the collecton.

    Declaration
    public static void AddParser<T>(TryParseMethod<T> parseMethod)
    Parameters
    Type Name Description
    TryParseMethod<T> parseMethod

    The parser method.

    Type Parameters
    Name Description
    T

    The target type.

    CanConvert(Type, String)

    This method is used to check whether we can convert the input value into specific type.

    Declaration
    public static bool CanConvert(Type type, string input)
    Parameters
    Type Name Description
    System.Type type

    The target data type.

    System.String input

    The input value.

    Returns
    Type
    System.Boolean

    Convert(Type, String, out Object)

    This method is used to check whether the input value is converted to target type.

    Declaration
    public static bool Convert(Type type, string input, out object value)
    Parameters
    Type Name Description
    System.Type type

    The target type

    System.String input

    The input value.

    System.Object value

    The output result.

    Returns
    Type
    System.Boolean

    Convert<T>(String, out T)

    This methos is used to check whether the input value is converted to target data type.

    Declaration
    public static bool Convert<T>(string input, out T value)
    Parameters
    Type Name Description
    System.String input

    The input value.

    T value

    The output result.

    Returns
    Type
    System.Boolean
    Type Parameters
    Name Description
    T

    The target type.

    IsNullableType(Type)

    This methos is used to check that the corresponding data type is nullable.

    Declaration
    public static bool IsNullableType(Type nullableType)
    Parameters
    Type Name Description
    System.Type nullableType
    Returns
    Type
    System.Boolean

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved