System.Web.UI.MinimizableAttributeTypeConverter.ConvertFrom C# (CSharp) 메소드

ConvertFrom() 공개 메소드

public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
리턴 object
		public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value)
		{
			// culture?
			if (value != null) {
				Type t = value.GetType ();
				if (t == typeof (string))
					return ((string)value) != String.Empty;

				if (t == typeof (bool))
					return value;
			}
			
			return base.ConvertFrom (context, culture, value);
		}