public ZlpFileOrDirectoryInfo(
     ZlpFileOrDirectoryInfo info)
 {
     _preferedType = info._preferedType;
     _fullPath     = info.FullName;
     _originalPath = info._originalPath;
 }
 public ZlpFileOrDirectoryInfo(
     string fullPath)
 {
     _preferedType = PreferedType.Unspecified;
     _fullPath     = fullPath;
     _originalPath = fullPath;
 }
 public ZlpFileOrDirectoryInfo(
     string fullPath)
 {
     _preferedType = PreferedType.Unspecified;
     _fullPath = fullPath;
     _originalPath = fullPath;
 }
Example #4
0
 public ZspFileOrDirectoryInfo(
     ZspFileOrDirectoryInfo info)
 {
     _preferedType = info._preferedType;
     FullName      = info.FullName;
     OriginalPath  = info.OriginalPath;
 }
Example #5
0
 public ZspFileOrDirectoryInfo(
     string fullPath)
 {
     _preferedType = PreferedType.Unspecified;
     FullName      = fullPath;
     OriginalPath  = fullPath;
 }
 public ZlpFileOrDirectoryInfo(
     ZlpFileOrDirectoryInfo info)
 {
     _preferedType = info._preferedType;
     _fullPath = info.FullName;
     _originalPath = info._originalPath;
 }
 public ZlpFileOrDirectoryInfo(
     string fullPath,
     PreferedType preferedType)
 {
     _preferedType = preferedType;
     _fullPath = fullPath;
     _originalPath = fullPath;
 }
 public ConstantReader(object value)
 {
     Type = NativeReturnType(value);
     Dval = ToNumber<double>(value);
     if (value != null) Sval = value.ToString();
     else Sval = "";
     Bval = ToBool(value);
 }
 // ReSharper restore SuggestBaseTypeForParameter
 public ZlpFileOrDirectoryInfo(
     // ReSharper disable SuggestBaseTypeForParameter
     ZlpFileInfo info)
 {
     _preferedType = PreferedType.File;
     _fullPath = info.FullName;
     _originalPath = info.ToString();
 }
Example #10
0
 public ZspFileOrDirectoryInfo(
     string fullPath,
     PreferedType preferedType)
 {
     _preferedType = preferedType;
     FullName      = fullPath;
     OriginalPath  = fullPath;
 }
 public ZlpFileOrDirectoryInfo(
     string fullPath,
     PreferedType preferedType)
 {
     _preferedType = preferedType;
     _fullPath     = fullPath;
     _originalPath = fullPath;
 }
Example #12
0
 public ZspFileOrDirectoryInfo(
     // ReSharper disable SuggestBaseTypeForParameter
     FileInfo info)
 // ReSharper restore SuggestBaseTypeForParameter
 {
     _preferedType = PreferedType.File;
     FullName      = info.FullName;
     OriginalPath  = info.ToString();
 }
 public ZlpFileOrDirectoryInfo(
     // ReSharper disable SuggestBaseTypeForParameter
     ZlpDirectoryInfo info)
 // ReSharper restore SuggestBaseTypeForParameter
 {
     _preferedType = PreferedType.Directory;
     _fullPath     = info.FullName;
     _originalPath = info.ToString();
 }
 /// <summary>
 /// Schaut ins Dateisystem, wenn der Typ "unspecified" ist und versucht den
 /// korreten Typ festzustellen.
 /// </summary>
 public void LookupType()
 {
     if (_preferedType == PreferedType.Unspecified)
     {
         _preferedType =
             IsFile
                 ? PreferedType.File
                 : IsDirectory
                     ? PreferedType.Directory
                     : PreferedType.Unspecified;
     }
 }
        public ZlpFileOrDirectoryInfo(
            string fullPath,
            bool detectTypeFromFileSystem)
        {
            _fullPath = fullPath;
            _originalPath = fullPath;

            if (detectTypeFromFileSystem)
            {
                _preferedType =
                    IsFile
                        ? PreferedType.File
                        : IsDirectory
                            ? PreferedType.Directory
                            : PreferedType.Unspecified;
            }
            else
            {
                _preferedType = PreferedType.Unspecified;
            }
        }
        public ZlpFileOrDirectoryInfo(
            string fullPath,
            bool detectTypeFromFileSystem)
        {
            _fullPath     = fullPath;
            _originalPath = fullPath;

            if (detectTypeFromFileSystem)
            {
                _preferedType =
                    IsFile
                        ? PreferedType.File
                        : IsDirectory
                            ? PreferedType.Directory
                            : PreferedType.Unspecified;
            }
            else
            {
                _preferedType = PreferedType.Unspecified;
            }
        }
 public ZlpFileOrDirectoryInfo()
 {
     _preferedType = PreferedType.Unspecified;
 }
 public ZlpFileOrDirectoryInfo()
 {
     _preferedType = PreferedType.Unspecified;
 }
 /// <summary>
 /// Schaut ins Dateisystem, wenn der Typ "unspecified" ist und versucht den
 /// korreten Typ festzustellen.
 /// </summary>
 public void LookupType()
 {
     if (_preferedType == PreferedType.Unspecified)
     {
         _preferedType =
             IsFile
                 ? PreferedType.File
                 : IsDirectory
                     ? PreferedType.Directory
                     : PreferedType.Unspecified;
     }
 }
Example #20
0
 protected FunctionReader(List<ValueReader> args, Type ret)
 {
     PreferedType = NativeReturnType(ret);
     Args = args;
 }