コード例 #1
0
 public override bool TypeSupported(Type type)
 {
     if (base.TypeSupported(type))
     {
         return(true);
     }
     if (ServiceObjectFieldHandler.IsCompatibleWith(type))
     {
         return(true);
     }
     return(false);
 }
コード例 #2
0
        public override IFieldHandler CreateFromType(Type type, FieldHandlerOptions options)
        {
            var result = base.CreateFromType(type, options);

            if (result != null)
            {
                return(result);
            }
            if (ServiceObjectFieldHandler.IsCompatibleWith(type))
            {
                return(new ServiceObjectFieldHandler(_service, type));
            }
            return(null);
        }