Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ClientRolePrincipal.cs
- TimeSpanHelper.cs
- DefaultObjectMappingItemCollection.cs
- ModelUIElement3D.cs
- AuthenticationConfig.cs
- XmlAttributeCache.cs
- CombinedGeometry.cs
- BooleanSwitch.cs
- DeviceContexts.cs
- WebServiceResponseDesigner.cs
- XmlExtensionFunction.cs
- TextPointer.cs
- CallbackValidatorAttribute.cs
- SafeIUnknown.cs
- ServiceDefaults.cs
- URLEditor.cs
- ToolStripDesignerAvailabilityAttribute.cs
- WindowsFormsHelpers.cs
- GridViewDeleteEventArgs.cs
- Win32MouseDevice.cs
- CompilationLock.cs
- ResourceBinder.cs
- BinaryObjectReader.cs
- RemotingConfiguration.cs
- ApplicationServiceHelper.cs
- SqlDependencyUtils.cs
- PassportAuthentication.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- EntityDataSourceChangedEventArgs.cs
- XslAst.cs
- LogStream.cs
- DescendentsWalker.cs
- ObjectReferenceStack.cs
- BooleanConverter.cs
- SignedPkcs7.cs
- XPathMultyIterator.cs
- SelectionService.cs
- ObjectStateEntryDbDataRecord.cs
- MembershipUser.cs
- ColumnMapVisitor.cs
- Column.cs
- SinglePageViewer.cs
- FieldMetadata.cs
- _UncName.cs
- ActiveXHost.cs
- CategoryValueConverter.cs
- ProcessInputEventArgs.cs
- _Win32.cs
- ProfilePropertySettingsCollection.cs
- oledbmetadatacolumnnames.cs
- CreateUserWizard.cs
- MultiView.cs
- PasswordTextContainer.cs
- RootBrowserWindow.cs
- PngBitmapEncoder.cs
- StyleCollectionEditor.cs
- RoleGroup.cs
- Events.cs
- Vector3DIndependentAnimationStorage.cs
- GeneratedView.cs
- WebPartTransformerAttribute.cs
- ToolBarTray.cs
- WindowsFormsSectionHandler.cs
- BindingCompleteEventArgs.cs
- ClientSettingsSection.cs
- RestHandlerFactory.cs
- DocumentPageHost.cs
- AnnotationObservableCollection.cs
- CodeIdentifiers.cs
- PrivilegedConfigurationManager.cs
- IItemContainerGenerator.cs
- DependencyPropertyHelper.cs
- RemotingConfiguration.cs
- ModuleBuilderData.cs
- ProcessThreadCollection.cs
- XmlDataSourceView.cs
- DataGridViewCellValidatingEventArgs.cs
- DataSysAttribute.cs
- SqlComparer.cs
- SafeRightsManagementEnvironmentHandle.cs
- Camera.cs
- EllipticalNodeOperations.cs
- _BasicClient.cs
- BrowserCapabilitiesCodeGenerator.cs
- ElementsClipboardData.cs
- TextRange.cs
- CursorConverter.cs
- FontWeight.cs
- Registry.cs
- ContentPlaceHolder.cs
- AttributedMetaModel.cs
- ResourceExpression.cs
- XamlTypeWithExplicitNamespace.cs
- PhysicalAddress.cs
- DataColumnMappingCollection.cs
- EventLogPropertySelector.cs
- UmAlQuraCalendar.cs
- LinearGradientBrush.cs
- InvokePatternIdentifiers.cs
- AttributeTable.cs