public void Init(ResultStorageKind storage, string subpath) { if (subpath == null) { throw new ArgumentNullException(); } this.storage = storage; this.subpath = subpath; this.modtime = invalid_modtime; }
// object public static string ToString(ResultStorageKind k) { switch (k) { case ResultStorageKind.Built: return("built"); case ResultStorageKind.Source: return("source"); case ResultStorageKind.System: return("system"); default: return("[unknown ResultStorageKind]"); } }
bool ParseStorageKind(string k, out ResultStorageKind v) { switch (k) { case "system": v = ResultStorageKind.System; return(false); case "built": v = ResultStorageKind.Built; return(false); case "source": v = ResultStorageKind.Source; return(false); default: v = ResultStorageKind.System; return(true); } }
public MBDirectory(ResultStorageKind storage, string subpath) : base() { Init(storage, subpath); }