mono / dbus-sharp

DBus Sharp
http://mono.github.com/dbus-sharp
MIT License
76 stars 59 forks source link

Should be able to access remote objects' properties via C# properties #18

Open gburt opened 13 years ago

gburt commented 13 years ago

The flip side of Issue 17 is being able to access remote objects' properties (that are exposed via org.freedesktop.DBus.Properties) without having to explicitly use that interface, but rather via C# properties.

arfbtwn commented 10 years ago

Hi, this feature would definitely be desirable!

I had a hack around a bit and managed to make Get work by doing this: http://pastebin.com/5B1vk8DW against the 0.7 tag. I think Set could be done similarly, but I'm not sure whether it's an ideal approach?

EDIT: @garuma, I've done a bit more work on this and made a pull request, #37, so the above pastebin diff can be ignored, the version in the pull request is quite a lot cleaner.