示例#1
0
        public static bool IsMove(this DropMatchKind self)
        {
            switch (self)
            {
            case DropMatchKind.DirectoryMove:
            case DropMatchKind.FileMove:
                return(true);

            default:
                return(false);
            }
        }
示例#2
0
        public static bool IsCopy(this DropMatchKind self)
        {
            switch (self)
            {
            case DropMatchKind.DirectoryCopy:
            case DropMatchKind.FileCopy:
                return(true);

            default:
                return(false);
            }
        }
示例#3
0
 private DropMatch(string path, int index, DropMatchKind kind)
 {
     Path  = path;
     Index = index;
     Kind  = kind;
 }
示例#4
0
 public static bool IsVirtual(this DropMatchKind self)
 {
     return(self == DropMatchKind.FileVirtual);
 }
示例#5
0
 public static bool IsFile(this DropMatchKind self)
 {
     return(!self.IsDirectory());
 }