Exemplo n.º 1
0
 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
 {
     if (TypeConverters.CanConvertFrom <bool?>(sourceType))
     {
         return(true);
     }
     return(sourceType == typeof(bool));
 }
Exemplo n.º 2
0
 public bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
 {
     return(TypeConverters.CanConvertFrom <PropertyPath>(sourceType));
 }
Exemplo n.º 3
0
 public bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
 {
     return(TypeConverters.CanConvertFrom <FontWeight>(sourceType));
 }
 public bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
 {
     return(TypeConverters.CanConvertFrom <TextDecorationCollection>(sourceType));
 }
Exemplo n.º 5
0
 public bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
 {
     return(TypeConverters.CanConvertFrom <bool?>(sourceType) ||
            (sourceType == typeof(bool)));
 }
Exemplo n.º 6
0
		public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
		{
			return TypeConverters.CanConvertFrom<Duration>(sourceType);
		}