TypeConverter.ConvertFrom Method

Definition

Overloads

ConvertFrom(Object)
Obsolete.

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

ConvertFrom(CultureInfo, Object)
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.

ConvertFrom(Object)

Caution

ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.

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

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.")]
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

Applies to

ConvertFrom(CultureInfo, Object)

Caution

ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.

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.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.")]
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