Ejemplo n.º 1
0
 public bool CanHandleType(Type type, global::Castle.Core.Configuration.IConfiguration configuration)
 {
     if (type == typeof(Regex))
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 public object PerformConversion(global::Castle.Core.Configuration.IConfiguration configuration, Type targetType)
 {
     return(new Regex(configuration.Value));
 }
Ejemplo n.º 3
0
 public override object PerformConversion(global::Castle.Core.Configuration.IConfiguration configuration, Type targetType)
 {
     return(PerformConversion(configuration.Value, targetType));
 }