示例#1
0
 public FileInterface(ItemInterface item) : base(item.GoogleDriveFile, item.GDrive)
 {
     if (item.IsFolder())
     {
         throw new ArgumentException("item represents a folder!", "item");
     }
 }
示例#2
0
 public DirectoryInterface(ItemInterface item) : base(item.GoogleDriveFile, item.GDrive)
 {
     if (!item.IsFolder())
     {
         throw new ArgumentException("item doesn't represent a folder!", "item");
     }
 }