Class FromStringConverterAdapter
Provides a unified way of converting System.String values to other types with support for a textual "undefined" value referring to null.
Inheritance
System.Object
FromStringConverterAdapter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.WebApi.Formatters.FormMultipart.Infrastructure.TypeConverters
Assembly: Cqrs.WebApi.dll
Syntax
public class FromStringConverterAdapter
Constructors
FromStringConverterAdapter(Type, TypeConverter)
Instantiates a new instance of FromStringConverterAdapter.
Declaration
public FromStringConverterAdapter(Type type, TypeConverter typeConverter)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | |
System.ComponentModel.TypeConverter | typeConverter |
Methods
ConvertFromString(String, CultureInfo)
Converts the given text to an object, using the specified context and culture information.
Declaration
public object ConvertFromString(string value, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The System.String to convert. |
System.Globalization.CultureInfo | culture | A System.Globalization.CultureInfo that specifies the culture to which to convert. |
Returns
Type | Description |
---|---|
System.Object | An System.Object that represents the converted |