Export (0) Print
Expand All

BaseEnumStringConverter<T>.CanConvertFrom Method (ITypeDescriptorContext, Type)

Gets a value that indicates whether this converter can convert an object in the given source type to a string that uses the specified context.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
sourceType
Type: System.Type
A Type that represents the type from which you want to convert.

Return Value

Type: System.Boolean
true if this converter can perform the conversion; otherwise, false.

Community Additions

ADD
Show:
© 2015 Microsoft