Page MenuHomePhabricator

efl-mono: Make eina.Value.Set return "this"
Closed, ResolvedPublic


If eina.Value.Set() returns this instead of a bool, it can be chained, which is very handy:

efl_config.SetConfig("finger_size", new eina.Value(eina.ValueType.Double).Set(15));

If the native eina_value_set() returns an error, it can be turned into an C# Exception, which is more natural.

It would be nice to do a similar thing with eina.Value.Get(), but I guess it is more complicated since it might require generics.