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
- ResourceAssociationSet.cs
- ViewGenerator.cs
- ProjectionQueryOptionExpression.cs
- SmiEventSink_Default.cs
- XPathBinder.cs
- CryptoStream.cs
- ImageAnimator.cs
- DataGridViewIntLinkedList.cs
- StreamUpdate.cs
- InkPresenterAutomationPeer.cs
- hwndwrapper.cs
- HtmlElement.cs
- XmlHierarchyData.cs
- PropertyPathConverter.cs
- OdbcErrorCollection.cs
- Int32Rect.cs
- XamlGridLengthSerializer.cs
- DropShadowEffect.cs
- SQLInt64Storage.cs
- DesignTimeTemplateParser.cs
- CharacterBuffer.cs
- SaveFileDialog.cs
- OleDbRowUpdatedEvent.cs
- VectorCollectionValueSerializer.cs
- Math.cs
- AutoGeneratedField.cs
- XmlCharType.cs
- HttpListenerResponse.cs
- ClientEventManager.cs
- CompressedStack.cs
- TextSelection.cs
- XmlUnspecifiedAttribute.cs
- HttpContextBase.cs
- Char.cs
- XmlArrayAttribute.cs
- PipelineDeploymentState.cs
- XmlCollation.cs
- SymbolMethod.cs
- GcSettings.cs
- XmlSerializerObjectSerializer.cs
- BaseValidator.cs
- DataComponentNameHandler.cs
- PaginationProgressEventArgs.cs
- HttpProfileBase.cs
- DataSourceCacheDurationConverter.cs
- BinaryWriter.cs
- ResourceIDHelper.cs
- TransactionScope.cs
- TreeNodeBinding.cs
- ImageListUtils.cs
- FormsAuthenticationModule.cs
- EntityDataSourceStatementEditorForm.cs
- BinHexEncoder.cs
- DispatchChannelSink.cs
- SqlUnionizer.cs
- SaveFileDialog.cs
- ReflectionUtil.cs
- TypeExtension.cs
- SslStreamSecurityBindingElement.cs
- ScriptingJsonSerializationSection.cs
- GridViewCancelEditEventArgs.cs
- InplaceBitmapMetadataWriter.cs
- ProxyWebPartManagerDesigner.cs
- CreateSequenceResponse.cs
- RawStylusActions.cs
- AsymmetricSignatureFormatter.cs
- CalendarDesigner.cs
- DbProviderFactories.cs
- Convert.cs
- ClientFormsIdentity.cs
- DataIdProcessor.cs
- BaseTemplateParser.cs
- DataGridColumnCollection.cs
- RangeValuePatternIdentifiers.cs
- SafeHandles.cs
- RootProfilePropertySettingsCollection.cs
- CompilationSection.cs
- SerialStream.cs
- Debug.cs
- MasterPageParser.cs
- CodeTypeParameter.cs
- OutputScope.cs
- XmlReflectionMember.cs
- EntityType.cs
- WinEventWrap.cs
- QueryCacheKey.cs
- OverrideMode.cs
- DayRenderEvent.cs
- HttpListenerElement.cs
- GetRecipientListRequest.cs
- NoClickablePointException.cs
- IsolatedStorageFile.cs
- DataTemplateKey.cs
- State.cs
- LicFileLicenseProvider.cs
- StrongNameUtility.cs
- IconHelper.cs
- MetaModel.cs
- QueryOperationResponseOfT.cs
- ValidatingPropertiesEventArgs.cs