Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ServerIdentity.cs
- HybridDictionary.cs
- BuildProvidersCompiler.cs
- DateTimeFormat.cs
- ReaderContextStackData.cs
- XmlDocumentSerializer.cs
- DiscoveryClientReferences.cs
- PenContexts.cs
- DrawingState.cs
- ButtonColumn.cs
- ConvertersCollection.cs
- StringValidatorAttribute.cs
- EventSinkActivityDesigner.cs
- MimeBasePart.cs
- CancelEventArgs.cs
- DeviceSpecificDialogCachedState.cs
- _KerberosClient.cs
- SecurityContextTokenCache.cs
- ThreadExceptionEvent.cs
- FileRecordSequence.cs
- PlanCompilerUtil.cs
- AssemblyCacheEntry.cs
- SqlStream.cs
- FocusChangedEventArgs.cs
- LockedBorderGlyph.cs
- LocalBuilder.cs
- SharedDp.cs
- ObjectCloneHelper.cs
- CapacityStreamGeometryContext.cs
- ConfigurationLockCollection.cs
- ConnectionStringsSection.cs
- _ProxyRegBlob.cs
- HelpKeywordAttribute.cs
- QueryComponents.cs
- DocumentOrderComparer.cs
- TableRow.cs
- XmlEnumAttribute.cs
- DesignerActionHeaderItem.cs
- EntityDataSourceColumn.cs
- Scripts.cs
- MarkupCompiler.cs
- OdbcReferenceCollection.cs
- ListViewContainer.cs
- DataPagerField.cs
- ToolStripMenuItem.cs
- PointCollectionValueSerializer.cs
- EdgeProfileValidation.cs
- MutexSecurity.cs
- SqlXml.cs
- DependencyProperty.cs
- Label.cs
- SqlConnectionStringBuilder.cs
- XXXInfos.cs
- LineBreak.cs
- CommandField.cs
- EventLogPermission.cs
- XmlSchema.cs
- XDeferredAxisSource.cs
- WindowsFormsSynchronizationContext.cs
- SessionStateUtil.cs
- LocalsItemDescription.cs
- Operand.cs
- ControlEvent.cs
- JavaScriptObjectDeserializer.cs
- CardSpaceShim.cs
- SchemaManager.cs
- FrameworkElementFactoryMarkupObject.cs
- ThreadAttributes.cs
- Transactions.cs
- StrongName.cs
- XpsViewerException.cs
- XamlSerializer.cs
- RestClientProxyHandler.cs
- TransformerConfigurationWizardBase.cs
- CapabilitiesSection.cs
- WmlObjectListAdapter.cs
- ComponentRenameEvent.cs
- WebPartHeaderCloseVerb.cs
- XAMLParseException.cs
- ProcessHostServerConfig.cs
- LogReserveAndAppendState.cs
- NativeMethods.cs
- HtmlCommandAdapter.cs
- DataRowComparer.cs
- FilterQuery.cs
- DataControlFieldCollection.cs
- AnnotationHighlightLayer.cs
- ApplicationGesture.cs
- InteropBitmapSource.cs
- ConnectionsZone.cs
- UnmanagedHandle.cs
- TokenBasedSetEnumerator.cs
- XmlResolver.cs
- BidOverLoads.cs
- StylusEventArgs.cs
- TextBoxDesigner.cs
- UIElement.cs
- Simplifier.cs
- NamespaceList.cs
- SymbolPair.cs