| File: System\Configuration\Internal\FileVersion.cs | Web Access |
| Project: src\runtime\src\libraries\System.Configuration.ConfigurationManager\src\System.Configuration.ConfigurationManager.csproj (System.Configuration.ConfigurationManager) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Configuration.Internal { internal sealed class FileVersion { private readonly bool _exists; private readonly long _fileSize; private readonly DateTime _utcCreationTime; private readonly DateTime _utcLastWriteTime; internal FileVersion(bool exists, long fileSize, DateTime utcCreationTime, DateTime utcLastWriteTime) { _exists = exists; _fileSize = fileSize; _utcCreationTime = utcCreationTime; _utcLastWriteTime = utcLastWriteTime; } public override bool Equals(object obj) { FileVersion other = obj as FileVersion; return (other != null) && (_exists == other._exists) && (_fileSize == other._fileSize) && (_utcCreationTime == other._utcCreationTime) && (_utcLastWriteTime == other._utcLastWriteTime); } public override int GetHashCode() { return base.GetHashCode(); } } }