Click or drag to resize
Accord.NET (logo)

RationalConverterConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

Converts the given object to the type of this converter, using the specified context and culture information.

Namespace:  Accord.Math.Converters
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public override Object ConvertFrom(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value
)
Request Example View Source

Parameters

context
Type: System.ComponentModelITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
culture
Type: System.GlobalizationCultureInfo
The CultureInfo to use as the current culture.
value
Type: SystemObject
The Object to convert.

Return Value

Type: Object
An Object that represents the converted value.
Exceptions
ExceptionCondition
ArgumentExceptionInavlid value type: " + value.GetType().FullName - value
See Also