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 ZspFileOrDirectoryInfo( ZspFileOrDirectoryInfo info) { _preferedType = info._preferedType; FullName = info.FullName; OriginalPath = info.OriginalPath; }
public ZspFileOrDirectoryInfo( string fullPath) { _preferedType = PreferedType.Unspecified; FullName = fullPath; OriginalPath = fullPath; }
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(); }
public ZspFileOrDirectoryInfo( string fullPath, PreferedType preferedType) { _preferedType = preferedType; FullName = fullPath; OriginalPath = fullPath; }
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() { _preferedType = PreferedType.Unspecified; }
protected FunctionReader(List<ValueReader> args, Type ret) { PreferedType = NativeReturnType(ret); Args = args; }