Class DataTypeTypeConverter
Provides a type converter to convert System.Type objects to and from string representations.
Inheritance
Namespace: Syncfusion.JavaScript.Models
Assembly: Syncfusion.EJ.dll
Syntax
public class DataTypeTypeConverter : TypeConverter
Constructors
DataTypeTypeConverter()
Declaration
public DataTypeTypeConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Overrides the ConvertFrom method of TypeConverter.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | It accepts and display |
System.Type | sourceType | It accepts Type and display |
Returns
Type | Description |
---|---|
System.Boolean | It returns the Boolean |
CanConvertTo(ITypeDescriptorContext, Type)
Overrides the ConvertTo method of TypeConverter.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | It accepts ITypeDescriptorContext and display |
System.Type | destinationType | It accepts Type and display |
Returns
Type | Description |
---|---|
System.Boolean | It returns the Boolean |
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Overrides the ConvertFrom method of TypeConverter.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | It accepts ITypeDescriptorContext and display |
System.Globalization.CultureInfo | culture | It accepts CultureInfo and display |
System.Object | value | It accepts Object and display |
Returns
Type | Description |
---|---|
System.Object | It returns the Object |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Overrides the ConvertTo method of TypeConverter.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | It accepts the ITypeDescriptorContext and display |
System.Globalization.CultureInfo | culture | It accepts the CultureInfo and display |
System.Object | value | It accepts the Object and display |
System.Type | destinationType | It accepts the Type and display |
Returns
Type | Description |
---|---|
System.Object | It returns the Object |
GetString(Type)
Gets the value of String as number or datetime.
Declaration
public static string GetString(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | It accepts the Type and display |
Returns
Type | Description |
---|---|
System.String | It returns the String |