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
- ProvidePropertyAttribute.cs
- Wizard.cs
- SponsorHelper.cs
- DefaultAuthorizationContext.cs
- RegisteredDisposeScript.cs
- SQLInt64.cs
- WebEventTraceProvider.cs
- BamlBinaryReader.cs
- DbProviderConfigurationHandler.cs
- ToolbarAUtomationPeer.cs
- DataGridRelationshipRow.cs
- DebugInfoGenerator.cs
- EtwTrace.cs
- DelegateArgument.cs
- EditorPart.cs
- XhtmlBasicPageAdapter.cs
- FtpWebResponse.cs
- CounterSetInstanceCounterDataSet.cs
- MemberRestriction.cs
- DispatcherSynchronizationContext.cs
- SocketPermission.cs
- FormViewInsertEventArgs.cs
- GAC.cs
- SystemWebExtensionsSectionGroup.cs
- RotateTransform3D.cs
- ProfileService.cs
- FontSourceCollection.cs
- CallTemplateAction.cs
- SymmetricKeyWrap.cs
- GenerateTemporaryTargetAssembly.cs
- FunctionQuery.cs
- MarshalDirectiveException.cs
- ClientTargetCollection.cs
- RegexWriter.cs
- ClientOptions.cs
- NetworkInformationPermission.cs
- HttpModuleActionCollection.cs
- ReadOnlyAttribute.cs
- hebrewshape.cs
- XmlLangPropertyAttribute.cs
- UpdatePanelControlTrigger.cs
- OdbcRowUpdatingEvent.cs
- HighlightComponent.cs
- InternalsVisibleToAttribute.cs
- AccessDataSource.cs
- BuiltInExpr.cs
- CalendarSelectionChangedEventArgs.cs
- FloatUtil.cs
- AssociatedControlConverter.cs
- ProxySimple.cs
- StrokeFIndices.cs
- TextTreeRootNode.cs
- Message.cs
- OpenTypeLayoutCache.cs
- DataTableNewRowEvent.cs
- MessageSecurityOverTcp.cs
- MainMenu.cs
- KeyNameIdentifierClause.cs
- StyleCollection.cs
- OutgoingWebResponseContext.cs
- XmlEntity.cs
- TypedTableHandler.cs
- ImageListStreamer.cs
- ProxyAttribute.cs
- MetadataProperty.cs
- SafeEventLogWriteHandle.cs
- IItemProperties.cs
- GeneralTransformGroup.cs
- ReadOnlyDataSourceView.cs
- DataService.cs
- RegisteredArrayDeclaration.cs
- CredentialCache.cs
- XslNumber.cs
- WebPartTransformerCollection.cs
- JavaScriptSerializer.cs
- CqlBlock.cs
- UInt64Storage.cs
- Journaling.cs
- ToolboxComponentsCreatingEventArgs.cs
- ToolStripInSituService.cs
- ConfigXmlWhitespace.cs
- CaseExpr.cs
- RoutedCommand.cs
- RowVisual.cs
- WebPartCollection.cs
- FSWPathEditor.cs
- GraphicsPath.cs
- WorkflowControlClient.cs
- ProfileService.cs
- PathGeometry.cs
- RouteParametersHelper.cs
- SingleTagSectionHandler.cs
- ByteStream.cs
- ScrollItemProviderWrapper.cs
- OdbcConnectionStringbuilder.cs
- TextFormatterContext.cs
- FontStyleConverter.cs
- ToolStripEditorManager.cs
- CustomAttributeFormatException.cs
- LinkedDataMemberFieldEditor.cs