Bari.Core.Test.Helper.TestFileSystemDirectory.GetLastModifiedDate C# (CSharp) Method

GetLastModifiedDate() public method

Gets the last modification's date for a given file which lies in this directory subtree
If the file does not exist.
public GetLastModifiedDate ( string relativePath ) : System.DateTime
relativePath string The relative path to the file from this directory
return System.DateTime
        public DateTime GetLastModifiedDate(string relativePath)
        {
            DateTime val;
            if (fileDates.TryGetValue(relativePath, out val))
                return val;
            else
                return new DateTime(2000, 1, 1);
        }