protected void initDirectoryType()
        {
            string path = FullName != null ? FullName : OriginalPath;

            if (path.Equals(IOTools.IID_Desktop))
            {
                _dirType = DirectoryTypeEnum.dtDesktop;
            }
            else
            if (path != null)
            {
                if (path.EndsWith(":\\"))
                {
                    _dirType = DirectoryTypeEnum.dtDrive;
                }
                else if (path.StartsWith("::"))
                {
                    _dirType = DirectoryTypeEnum.dtSpecial;
                }
                else
                {
                    _dirType = DirectoryTypeEnum.dtFolder;
                }
            }
        }
 public DirectoryInfoEx(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _dirType     = (DirectoryTypeEnum)info.GetValue("DirectoryType", typeof(DirectoryTypeEnum));
     IsBrowsable  = info.GetBoolean("IsBrowsable");
     IsFileSystem = info.GetBoolean("IsFileSystem");
     HasSubFolder = info.GetBoolean("HasSubFolder");
 }
        protected void initDirectoryType()
        {
            string path = FullName != null ? FullName : OriginalPath;

            if (path.Equals(IOTools.IID_Desktop))
                _dirType = DirectoryTypeEnum.dtDesktop;
            else
                if (path != null)
                    if (path.EndsWith(":\\"))
                        _dirType = DirectoryTypeEnum.dtDrive;
                    else if (path.StartsWith("::"))
                        _dirType = DirectoryTypeEnum.dtSpecial;
                    else _dirType = DirectoryTypeEnum.dtFolder;
        }
 public DirectoryInfoEx(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _dirType = (DirectoryTypeEnum)info.GetValue("DirectoryType", typeof(DirectoryTypeEnum));
     IsBrowsable = info.GetBoolean("IsBrowsable");
     IsFileSystem = info.GetBoolean("IsFileSystem");
     HasSubFolder = info.GetBoolean("HasSubFolder");
 }