I did omit a simple class, here it is. Hope this helps. If not ask another question...
p.s. Sorry about the formatting. The Add Code didn't format it very well this time...
public class FileNameAndFrn |
{ |
#region Properties |
private string _name; |
public string Name |
{ |
get { return _name; } |
set { _name = value; } |
} |
private UInt64 _parentFrn; |
public UInt64 ParentFrn |
{ |
get { return _parentFrn; } |
set { _parentFrn = value; } |
} |
#endregion |
#region Constructor |
public FileNameAndFrn(string name, UInt64 parentFrn) |
{ |
if (name != null && name.Length > 0) |
{ |
_name = name; |
} |
else |
{ |
throw new ArgumentException("Invalid argument: null or Length = zero", "name"); |
} |
if (!(parentFrn < 0)) |
{ |
_parentFrn = parentFrn; |
} |
else |
{ |
throw new ArgumentException("Invalid argument: less than zero", "parentFrn"); |
} |
} |
#endregion |
} |