Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Configuration / FileDetails.cs / 1 / FileDetails.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.Collections; using System.Configuration; using System.Configuration.Internal; using System.Web; using System.Web.Util; using System.Security; using System.IO; using System.Web.Hosting; using System.Runtime.InteropServices; using System.Reflection; using System.Collections.Specialized; using System.Xml; using System.Security.Principal; using System.Threading; using System.Globalization; internal class FileDetails { bool _exists; long _fileSize; DateTime _utcCreationTime; DateTime _utcLastWriteTime; internal FileDetails(bool exists, long fileSize, DateTime utcCreationTime, DateTime utcLastWriteTime) { _exists = exists; _fileSize = fileSize; _utcCreationTime = utcCreationTime; _utcLastWriteTime = utcLastWriteTime; } public override bool Equals(Object obj) { FileDetails other = obj as FileDetails; return other != null && _exists == other._exists && _fileSize == other._fileSize && _utcCreationTime == other._utcCreationTime && _utcLastWriteTime == other._utcLastWriteTime; } public override int GetHashCode() { return HashCodeCombiner.CombineHashCodes(_exists.GetHashCode(), _fileSize.GetHashCode(), _utcCreationTime.GetHashCode(), _utcLastWriteTime.GetHashCode()); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.Collections; using System.Configuration; using System.Configuration.Internal; using System.Web; using System.Web.Util; using System.Security; using System.IO; using System.Web.Hosting; using System.Runtime.InteropServices; using System.Reflection; using System.Collections.Specialized; using System.Xml; using System.Security.Principal; using System.Threading; using System.Globalization; internal class FileDetails { bool _exists; long _fileSize; DateTime _utcCreationTime; DateTime _utcLastWriteTime; internal FileDetails(bool exists, long fileSize, DateTime utcCreationTime, DateTime utcLastWriteTime) { _exists = exists; _fileSize = fileSize; _utcCreationTime = utcCreationTime; _utcLastWriteTime = utcLastWriteTime; } public override bool Equals(Object obj) { FileDetails other = obj as FileDetails; return other != null && _exists == other._exists && _fileSize == other._fileSize && _utcCreationTime == other._utcCreationTime && _utcLastWriteTime == other._utcLastWriteTime; } public override int GetHashCode() { return HashCodeCombiner.CombineHashCodes(_exists.GetHashCode(), _fileSize.GetHashCode(), _utcCreationTime.GetHashCode(), _utcLastWriteTime.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
- TypeUnloadedException.cs
- WebPartDescription.cs
- CacheOutputQuery.cs
- ITreeGenerator.cs
- XmlQueryStaticData.cs
- SiteMapNodeItem.cs
- DragStartedEventArgs.cs
- InstalledFontCollection.cs
- WebBrowserHelper.cs
- TypeToken.cs
- SchemaElementLookUpTableEnumerator.cs
- DocumentPageView.cs
- GPStream.cs
- PropertyNames.cs
- StateDesigner.LayoutSelectionGlyph.cs
- WebScriptMetadataMessage.cs
- DebugView.cs
- RangeValidator.cs
- CategoryValueConverter.cs
- ApplicationGesture.cs
- EntityDataSourceColumn.cs
- SiteMapNodeItemEventArgs.cs
- ValidationErrorCollection.cs
- ConfigUtil.cs
- DataGridViewTextBoxEditingControl.cs
- InternalControlCollection.cs
- DataErrorValidationRule.cs
- WebContentFormatHelper.cs
- Decoder.cs
- EntityContainerEmitter.cs
- BaseCollection.cs
- Array.cs
- XmlNamespaceMapping.cs
- ACE.cs
- ObjectReaderCompiler.cs
- ObjectDataSourceView.cs
- XmlNullResolver.cs
- InvalidProgramException.cs
- MD5CryptoServiceProvider.cs
- DeploymentExceptionMapper.cs
- SessionStateContainer.cs
- PeerInvitationResponse.cs
- TagPrefixCollection.cs
- altserialization.cs
- SweepDirectionValidation.cs
- Socket.cs
- HttpContextServiceHost.cs
- SystemResourceHost.cs
- Slider.cs
- DispatcherSynchronizationContext.cs
- WorkflowMarkupSerializationProvider.cs
- SafeNativeMethods.cs
- DataColumnChangeEvent.cs
- PageFunction.cs
- AppModelKnownContentFactory.cs
- WorkflowMarkupSerializationManager.cs
- TextRangeBase.cs
- DecimalAnimation.cs
- SrgsGrammarCompiler.cs
- DataListItemCollection.cs
- DataControlLinkButton.cs
- ItemsPresenter.cs
- Blend.cs
- RsaSecurityTokenParameters.cs
- EventProperty.cs
- WebServiceData.cs
- DataGridViewRowStateChangedEventArgs.cs
- VirtualPath.cs
- OdbcCommand.cs
- PickBranch.cs
- X509ScopedServiceCertificateElement.cs
- CalendarButtonAutomationPeer.cs
- ForceCopyBuildProvider.cs
- SecurityPolicySection.cs
- VisualBasicImportReference.cs
- ScopeElement.cs
- InputProcessorProfilesLoader.cs
- ObjectNavigationPropertyMapping.cs
- PropertyChangeTracker.cs
- initElementDictionary.cs
- Operators.cs
- ContentValidator.cs
- XPathSelfQuery.cs
- KoreanCalendar.cs
- ConfigErrorGlyph.cs
- ToolStripComboBox.cs
- DataGridViewTextBoxCell.cs
- PlaceHolder.cs
- StorageEntityTypeMapping.cs
- sqlser.cs
- MarkupCompilePass1.cs
- HtmlInputPassword.cs
- SqlGatherConsumedAliases.cs
- TrustManager.cs
- MethodBody.cs
- BlockExpression.cs
- QuaternionAnimationUsingKeyFrames.cs
- SQLByte.cs
- IndicShape.cs
- EffectiveValueEntry.cs