TypeConverter.ConvertFrom Method

Definition

Overloads

ConvertFrom(Object)

Calls ConvertFrom(CultureInfo, Object) with the current culture information and o.

ConvertFrom(CultureInfo, Object)

When implemented in a derived class, converts an object that is a version of value and that can be cast to the target type.

ConvertFrom(Object)

Warning

This API is now obsolete.

Calls ConvertFrom(CultureInfo, Object) with the current culture information and o.

[System.Obsolete("ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.")]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public virtual object ConvertFrom (object o);
abstract member ConvertFrom : obj -> obj
override this.ConvertFrom : obj -> obj

Parameters

o
Object

The object to convert.

Returns

Attributes

ConvertFrom(CultureInfo, Object)

Warning

This API is now obsolete.

When implemented in a derived class, converts an object that is a version of value and that can be cast to the target type.

[System.Obsolete("ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.")]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public virtual object ConvertFrom (System.Globalization.CultureInfo culture, object o);
abstract member ConvertFrom : System.Globalization.CultureInfo * obj -> obj
override this.ConvertFrom : System.Globalization.CultureInfo * obj -> obj

Parameters

culture
CultureInfo

The culture information to use when performing the conversion.

o
Object

The object to convert.

Returns

Attributes

Applies to