ConvertFrom() public méthode

public ConvertFrom ( ITypeDescriptorContext ctx, CultureInfo ci, object data ) : object
ctx ITypeDescriptorContext
ci System.Globalization.CultureInfo
data object
Résultat object
		public void ConvertFrom_InvalidString ()
		{
			GenericEnumConverter cv = new GenericEnumConverter (typeof (FooEnum));
			object o;

			o = cv.ConvertFrom (null, null, "baz");
			Assert.IsNull (o, "A1");
		}
		public void ConvertFrom_Case ()
		{
			GenericEnumConverter cv = new GenericEnumConverter (typeof (FooEnum));
			Assert.AreEqual (FooEnum.Foo, cv.ConvertFrom (null, null, "foo"), "A1");
		}