public override bool CreateField(TypeFieldSchema schema, Type type, FieldInfo fieldInfo, object initialValue, out BindableElement element) { element = null; if (type.IsEnum) { element = CreateField(type, fieldInfo, (Enum)initialValue); return(true); } else { return(false); } }
public override bool CreateField(TypeFieldSchema schema, Type type, FieldInfo fieldInfo, object initialValue, out BindableElement element) { var provider = schema.GetProvider(type); if (provider == null) { element = null; return(false); } else { element = provider.CreateField(type, fieldInfo, initialValue); return(true); } }
public abstract bool CreateField(TypeFieldSchema schema, Type type, FieldInfo fieldInfo, object initialValue, out BindableElement element);