public override bool TypeSupported(Type type) { if (base.TypeSupported(type)) { return(true); } if (ServiceObjectFieldHandler.IsCompatibleWith(type)) { return(true); } return(false); }
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); }