Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Configuration / System / Configuration / Internal / FileVersion.cs / 1 / FileVersion.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration.Internal { using System.Configuration; using System.IO; using System.Security.Permissions; using System.Reflection; using System.Threading; using System.Security; using System.CodeDom.Compiler; using Microsoft.Win32; #if !FEATURE_PAL using System.Security.AccessControl; #endif internal class FileVersion { bool _exists; long _fileSize; DateTime _utcCreationTime; 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration.Internal { using System.Configuration; using System.IO; using System.Security.Permissions; using System.Reflection; using System.Threading; using System.Security; using System.CodeDom.Compiler; using Microsoft.Win32; #if !FEATURE_PAL using System.Security.AccessControl; #endif internal class FileVersion { bool _exists; long _fileSize; DateTime _utcCreationTime; 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AsyncOperationManager.cs
- MaskInputRejectedEventArgs.cs
- FixedSOMFixedBlock.cs
- ScrollBar.cs
- SqlClientWrapperSmiStreamChars.cs
- ComAwareEventInfo.cs
- WebPartAuthorizationEventArgs.cs
- ToolStripPanelRow.cs
- DataObjectCopyingEventArgs.cs
- LayoutManager.cs
- BinaryObjectReader.cs
- AppSettingsReader.cs
- RootBuilder.cs
- SkipStoryboardToFill.cs
- SqlConnectionPoolGroupProviderInfo.cs
- _SecureChannel.cs
- InstanceCollisionException.cs
- Publisher.cs
- DataGridViewDataConnection.cs
- ThemeableAttribute.cs
- ComPlusAuthorization.cs
- PathGeometry.cs
- QueryOptionExpression.cs
- EdmFunctions.cs
- DatagramAdapter.cs
- MoveSizeWinEventHandler.cs
- MailWebEventProvider.cs
- SpellerInterop.cs
- OperationResponse.cs
- StylusButtonEventArgs.cs
- ReferenceService.cs
- RtfToken.cs
- PropertyValue.cs
- ParameterCollection.cs
- XPathEmptyIterator.cs
- OdbcConnectionFactory.cs
- SoapException.cs
- WindowsGraphics2.cs
- JobCollate.cs
- Int32Collection.cs
- storepermission.cs
- TextElementEditingBehaviorAttribute.cs
- AutomationTextAttribute.cs
- TextRangeEditLists.cs
- DesignerAutoFormat.cs
- PersonalizableTypeEntry.cs
- OracleString.cs
- ScrollEvent.cs
- TagPrefixInfo.cs
- Frame.cs
- HMAC.cs
- GenericNameHandler.cs
- Size3DConverter.cs
- X509Utils.cs
- Types.cs
- AttachedPropertyBrowsableAttribute.cs
- WindowsStartMenu.cs
- HtmlControl.cs
- AuthenticationModulesSection.cs
- HtmlFormWrapper.cs
- SessionStateContainer.cs
- Accessible.cs
- CheckBox.cs
- XmlProcessingInstruction.cs
- XmlReflectionImporter.cs
- VerificationException.cs
- DataGridHyperlinkColumn.cs
- HttpCookieCollection.cs
- WorkflowEventArgs.cs
- HttpModuleActionCollection.cs
- LinkArea.cs
- SignedPkcs7.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- PersonalizationProviderHelper.cs
- TabControl.cs
- CachedFontFace.cs
- XmlSchemaObject.cs
- CheckBox.cs
- ImageKeyConverter.cs
- ItemsChangedEventArgs.cs
- PrimitiveCodeDomSerializer.cs
- ResourceDescriptionAttribute.cs
- Nullable.cs
- MonitoringDescriptionAttribute.cs
- FilterUserControlBase.cs
- SqlDependency.cs
- BindingElement.cs
- CustomErrorCollection.cs
- BitmapEffectCollection.cs
- OpCopier.cs
- ChameleonKey.cs
- ParserStreamGeometryContext.cs
- GroupBoxAutomationPeer.cs
- XmlSchemaGroupRef.cs
- PathSegment.cs
- ComAdminInterfaces.cs
- SpeakInfo.cs
- VirtualizedItemPattern.cs
- CodeVariableReferenceExpression.cs
- DiscoveryClientChannelFactory.cs