コード例 #1
0
 private string[] SafelyGetStringList(string name)
 {
     try {
         if (device.PropertyExists(name))
         {
             return(device.GetPropertyStringList(name));
         }
     } catch {}
     return(new string [0]);
 }
コード例 #2
0
        protected Volume(BlockDevice parent, Hal.Manager manager, Hal.Device device) : base(manager, device)
        {
            this.parent = parent ?? BlockDevice.Resolve <IBlockDevice> (manager, device.Parent);

            method_names = HalDevice.PropertyExists(method_names_property)
                ? device.GetPropertyStringList(method_names_property)
                : new string[0];
        }
コード例 #3
0
ファイル: Device.cs プロジェクト: SyaskiMasyaski/banshee
 public string [] GetPropertyStringList(string key)
 {
     return(device.GetPropertyStringList(key));
 }