public RelativeFfolder(IFfolder folder, string name) { if (folder.Relative == null && folder.Absolute == null) { throw new ArgumentException("absolute and relative are null"); } Name = name; if (folder.Relative == null && folder.Absolute != null) { Absolute = folder.Absolute; return; } if (folder.Relative != null && folder.Absolute == null) { Parent = folder.Relative; Absolute = GetAbsolute(Parent); return; } if (folder.Relative != null && folder.Absolute != null) { Parent = folder.Relative; Absolute = folder.Absolute; return; } }
public Ffile(IFfolder folder, string name) { Folder = folder; Name = name; }