Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / Internal / FileVersion.cs / 1305376 / 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
- XappLauncher.cs
- SharedPerformanceCounter.cs
- ConnectionPointGlyph.cs
- SafeThreadHandle.cs
- UserControl.cs
- ReferencedType.cs
- OrderedParallelQuery.cs
- MessageRpc.cs
- XmlSchemaSimpleTypeRestriction.cs
- BordersPage.cs
- SelectionChangedEventArgs.cs
- XmlCharCheckingReader.cs
- RandomNumberGenerator.cs
- FeatureAttribute.cs
- IDReferencePropertyAttribute.cs
- InitializationEventAttribute.cs
- RuleSetReference.cs
- DirectoryNotFoundException.cs
- XmlDataImplementation.cs
- PerspectiveCamera.cs
- CodeDefaultValueExpression.cs
- RotateTransform.cs
- DataTemplateKey.cs
- MethodAccessException.cs
- XamlToRtfWriter.cs
- FreezableOperations.cs
- DummyDataSource.cs
- MouseButton.cs
- SmtpReplyReaderFactory.cs
- TemporaryBitmapFile.cs
- DataGridViewControlCollection.cs
- IndependentlyAnimatedPropertyMetadata.cs
- RelationshipEnd.cs
- CodeNamespaceCollection.cs
- Stack.cs
- DbModificationClause.cs
- XmlSchemaSet.cs
- XmlElement.cs
- Matrix3D.cs
- DatagridviewDisplayedBandsData.cs
- ArrayTypeMismatchException.cs
- OdbcHandle.cs
- MemoryStream.cs
- OutputCacheModule.cs
- ProfileEventArgs.cs
- SingleAnimation.cs
- DocumentSequenceHighlightLayer.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- SimpleHandlerFactory.cs
- Rotation3D.cs
- ClickablePoint.cs
- SqlAliasesReferenced.cs
- SemaphoreSlim.cs
- ChildTable.cs
- UIAgentMonitorHandle.cs
- XmlAttributeHolder.cs
- CatalogZone.cs
- ViewStateModeByIdAttribute.cs
- TripleDESCryptoServiceProvider.cs
- ParseChildrenAsPropertiesAttribute.cs
- shaperfactoryquerycacheentry.cs
- BaseCodeDomTreeGenerator.cs
- ResponseBodyWriter.cs
- ProfileEventArgs.cs
- IIS7UserPrincipal.cs
- UnrecognizedAssertionsBindingElement.cs
- ClaimSet.cs
- AccessDataSource.cs
- LocalizedNameDescriptionPair.cs
- XmlWrappingWriter.cs
- WebExceptionStatus.cs
- ProfilePropertyNameValidator.cs
- ScaleTransform3D.cs
- IIS7UserPrincipal.cs
- COM2ComponentEditor.cs
- AttributeCollection.cs
- UserNameSecurityTokenAuthenticator.cs
- ExternalException.cs
- SmtpNetworkElement.cs
- Thickness.cs
- ProcessManager.cs
- RootProfilePropertySettingsCollection.cs
- XPathNavigator.cs
- OneOfConst.cs
- XmlTypeMapping.cs
- TagPrefixInfo.cs
- ColorConverter.cs
- InternalBase.cs
- EventWaitHandleSecurity.cs
- CreatingCookieEventArgs.cs
- MatchingStyle.cs
- SimpleApplicationHost.cs
- ResolveNextArgumentWorkItem.cs
- Border.cs
- QueryExtender.cs
- WebPartConnectionsDisconnectVerb.cs
- UnionExpr.cs
- Transform3DGroup.cs
- ItemChangedEventArgs.cs
- DataGridViewTopRowAccessibleObject.cs