1 //------------------------------------------------------------------------------
2 // <copyright file="FileVersion.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //------------------------------------------------------------------------------
6 
7 namespace System.Configuration.Internal {
8     using System.Configuration;
9     using System.IO;
10     using System.Security.Permissions;
11     using System.Reflection;
12     using System.Threading;
13     using System.Security;
14     using System.CodeDom.Compiler;
15     using Microsoft.Win32;
16 #if !FEATURE_PAL
17     using System.Security.AccessControl;
18 #endif
19 
20     internal class FileVersion {
21         bool        _exists;
22         long        _fileSize;
23         DateTime    _utcCreationTime;
24         DateTime    _utcLastWriteTime;
25 
FileVersion(bool exists, long fileSize, DateTime utcCreationTime, DateTime utcLastWriteTime)26         internal FileVersion(bool exists, long fileSize, DateTime utcCreationTime, DateTime utcLastWriteTime) {
27             _exists = exists;
28             _fileSize = fileSize;
29             _utcCreationTime = utcCreationTime;
30             _utcLastWriteTime = utcLastWriteTime;
31         }
32 
Equals(Object obj)33         public override bool Equals(Object obj) {
34             FileVersion other = obj as FileVersion;
35             return
36                    other != null
37                 && _exists == other._exists
38                 && _fileSize == other._fileSize
39                 && _utcCreationTime == other._utcCreationTime
40                 && _utcLastWriteTime == other._utcLastWriteTime;
41         }
42 
GetHashCode()43         public override int GetHashCode() {
44             return base.GetHashCode();
45         }
46     }
47 }
48