Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResXBuildProvider.cs
- SecurityContextKeyIdentifierClause.cs
- PersonalizationStateQuery.cs
- ElasticEase.cs
- SmtpDigestAuthenticationModule.cs
- HwndSubclass.cs
- AccessControlList.cs
- GPRECT.cs
- RequestCacheManager.cs
- ArraySet.cs
- RuntimeCompatibilityAttribute.cs
- _ConnectStream.cs
- PaperSize.cs
- NavigationFailedEventArgs.cs
- DataControlImageButton.cs
- _LazyAsyncResult.cs
- RequestQueue.cs
- WebMessageEncodingBindingElement.cs
- ContentFileHelper.cs
- SoapReflectionImporter.cs
- FrameworkElementFactory.cs
- Compiler.cs
- PageWrapper.cs
- SerialPinChanges.cs
- TranslateTransform.cs
- Image.cs
- ParseChildrenAsPropertiesAttribute.cs
- Span.cs
- WebEventTraceProvider.cs
- ValidationSummary.cs
- PeerPresenceInfo.cs
- SystemParameters.cs
- GroupBox.cs
- Item.cs
- ComplexLine.cs
- ValidationEventArgs.cs
- MethodBuilder.cs
- UnsafeMethods.cs
- ControlCachePolicy.cs
- Bidi.cs
- ParserContext.cs
- ShapingEngine.cs
- BindToObject.cs
- DataGridViewRowHeaderCell.cs
- QualifiedCellIdBoolean.cs
- QueryStack.cs
- Unit.cs
- PipelineModuleStepContainer.cs
- ControlValuePropertyAttribute.cs
- HTMLTextWriter.cs
- SystemDiagnosticsSection.cs
- Property.cs
- WindowsFont.cs
- SpanIndex.cs
- XPathSelfQuery.cs
- Debug.cs
- ResourceProperty.cs
- ExcludeFromCodeCoverageAttribute.cs
- VectorCollectionValueSerializer.cs
- DataGridViewAccessibleObject.cs
- DictionaryContent.cs
- BaseContextMenu.cs
- MetadataArtifactLoaderCompositeFile.cs
- SetIndexBinder.cs
- HandleRef.cs
- GenerateTemporaryTargetAssembly.cs
- MemberAccessException.cs
- WebServiceReceiveDesigner.cs
- XmlBinaryWriterSession.cs
- ItemList.cs
- Mappings.cs
- PropertyPath.cs
- ScriptResourceInfo.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- CatalogPartChrome.cs
- HtmlElementErrorEventArgs.cs
- DecimalConstantAttribute.cs
- ClientSection.cs
- TagPrefixInfo.cs
- FontUnit.cs
- IdleTimeoutMonitor.cs
- _ListenerRequestStream.cs
- PolyLineSegment.cs
- CheckableControlBaseAdapter.cs
- WebPartConnectionsCancelVerb.cs
- SafeArrayRankMismatchException.cs
- ClientScriptItem.cs
- WebSysDefaultValueAttribute.cs
- ExceptionValidationRule.cs
- SettingsPropertyIsReadOnlyException.cs
- RegexCompiler.cs
- DelayedRegex.cs
- AttachmentCollection.cs
- DataServiceRequestException.cs
- ProtectedConfigurationSection.cs
- APCustomTypeDescriptor.cs
- ComMethodElementCollection.cs
- DataGrid.cs
- XmlSchemaImporter.cs
- ResourceKey.cs