static MethodArgumentValueSpec SpecifyArgumentValue(NamedValue pv) => (isNull(pv.Value) || object.Equals(pv.Value, DBNull.Value)) ? new MethodArgumentValueSpec(pv.Name, null) : new MethodArgumentValueSpec(pv.Name, new LiteralValueSpec(CoreDataValue.FromObject(pv.Value).Require()));
static CoreDataValue GetLiteralValue(FieldInfo ReflectedElement) => ~CoreDataValue.FromObject(Convert.ChangeType( ReflectedElement.GetValue(null), Enum.GetUnderlyingType(ReflectedElement.DeclaringType) ));