示例#1
0
 uint GetUInt(org.freedesktop.DBus.Properties dbusobj, string path, string propname)
 {
     try {
         return(UInt32.Parse(dbusobj.Get(path, propname).ToString()));
     } catch {
         return(0);
     }
 }
示例#2
0
 double GetDouble(org.freedesktop.DBus.Properties dbusobj, string path, string propname)
 {
     try {
         return(Double.Parse(dbusobj.Get(path, propname).ToString()));
     } catch {
         return(0);
     }
 }
示例#3
0
 public string GetProperty(string name)
 {
     return(_properties.Get(String.Empty, name).ToString());
 }