public static ObjectViewParameterLoader Create( MetadataObjectView view, string name) { ObjectViewParameterLoader viewParameterLoader1 = ObjectViewIdLoader.TryCreate(view, name); if (viewParameterLoader1 != null) { return(viewParameterLoader1); } ObjectViewParameterLoader viewParameterLoader2 = ObjectViewPropertyLoader.TryCreate(view, name); if (viewParameterLoader2 != null) { return(viewParameterLoader2); } return(ObjectViewVirtualPropertyLoader.TryCreate(view, name) ?? throw new Exception("Невозможно создать загрузчик значения параметра для \"" + name + "\"")); }
public static bool CanCreate(MetadataObjectView view, string name) => ObjectViewIdLoader.CanCreate(view, name) || ObjectViewPropertyLoader.CanCreate(view, name) || ObjectViewVirtualPropertyLoader.CanCreate(view, name);