示例#1
0
 /// <summary>
 /// Hidden class constructor
 /// </summary>
 protected FileSystemModel()
 {
     mModel = null;
 }
示例#2
0
 /// <summary>
 /// Parameterized class constructor
 /// </summary>
 public FileSystemModel(PathModel model)
 {
     mModel = model;
     Debug.Assert(model != null, "Construction of FSItem without PathModel is not supported!");
 }
示例#3
0
 /// <summary>
 /// Determine whether two <seealso cref="PathModel"/> objects
 /// describe the same location/item in the file system or not.
 ///
 /// Method implements <seealso cref="IEqualityComparer{IPathModel}"/> interface.
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <returns></returns>
 public bool Equals(IPathModel x, IPathModel y)
 {
     return(PathModel.Compare(x, y));
 }
示例#4
0
 /// <summary>
 /// Determine whether two <seealso cref="PathModel"/> objects describe the same
 /// location/item in the file system or not.
 ///
 /// Method implements <seealso cref="IEquatable{IPathModel}"/> interface.
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool Equals(IPathModel other)
 {
     return(PathModel.Compare(this, other));
 }
示例#5
0
 /// <summary>
 /// Determine whether a given path is an existing directory or not.
 /// </summary>
 /// <returns>true if this directory exists and otherwise false</returns>
 public bool DirectoryPathExists()
 {
     return(PathModel.DirectoryPathExists(mPath));
 }