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
- SafeCryptoHandles.cs
- Throw.cs
- CmsInterop.cs
- RelatedCurrencyManager.cs
- Roles.cs
- RequiredFieldValidator.cs
- OrderPreservingPipeliningMergeHelper.cs
- SessionEndingEventArgs.cs
- XhtmlCssHandler.cs
- Application.cs
- ActivitySurrogate.cs
- DataBoundControl.cs
- WebControlParameterProxy.cs
- coordinatorfactory.cs
- RevocationPoint.cs
- TypefaceMap.cs
- ListBindingHelper.cs
- PtsPage.cs
- FixedSchema.cs
- MailWriter.cs
- SqlBuffer.cs
- ExpressionBuilder.cs
- CompModSwitches.cs
- StrongNameUtility.cs
- NonSerializedAttribute.cs
- processwaithandle.cs
- Span.cs
- TranslateTransform.cs
- NaturalLanguageHyphenator.cs
- Pair.cs
- IDQuery.cs
- COM2EnumConverter.cs
- DiagnosticsConfiguration.cs
- ConfigurationStrings.cs
- PublishLicense.cs
- Condition.cs
- RelatedImageListAttribute.cs
- RawAppCommandInputReport.cs
- SubMenuStyleCollection.cs
- TextSegment.cs
- JapaneseCalendar.cs
- TransformerInfo.cs
- DigitShape.cs
- ActivityCollectionMarkupSerializer.cs
- TransportSecurityProtocolFactory.cs
- SourceFilter.cs
- PointCollectionValueSerializer.cs
- CompilerGlobalScopeAttribute.cs
- MouseGestureValueSerializer.cs
- RegisteredExpandoAttribute.cs
- DataBoundLiteralControl.cs
- HScrollProperties.cs
- ControlValuePropertyAttribute.cs
- WindowsRegion.cs
- EventRecordWrittenEventArgs.cs
- ControlAdapter.cs
- WhitespaceRule.cs
- RegistryKey.cs
- Selection.cs
- CompilationUnit.cs
- UpdateCompiler.cs
- RawStylusInputCustomData.cs
- BuildManagerHost.cs
- Point3DAnimationBase.cs
- AxisAngleRotation3D.cs
- RichTextBox.cs
- GiveFeedbackEventArgs.cs
- XamlStream.cs
- XmlIlVisitor.cs
- M3DUtil.cs
- RepeatButtonAutomationPeer.cs
- RectAnimationUsingKeyFrames.cs
- InvocationExpression.cs
- Tokenizer.cs
- EmptyImpersonationContext.cs
- Assembly.cs
- ValuePattern.cs
- WebPartConnectVerb.cs
- DbMetaDataCollectionNames.cs
- GridViewRowPresenterBase.cs
- PrintPreviewDialog.cs
- RegexParser.cs
- PropertyInformation.cs
- dtdvalidator.cs
- DiscoveryDocument.cs
- OperatorExpressions.cs
- NumericExpr.cs
- FilteredAttributeCollection.cs
- MemoryPressure.cs
- HtmlControlDesigner.cs
- SqlBulkCopy.cs
- DataGridGeneralPage.cs
- TextTreeTextElementNode.cs
- GridViewColumnCollectionChangedEventArgs.cs
- EasingQuaternionKeyFrame.cs
- Single.cs
- RsaKeyIdentifierClause.cs
- GridViewCancelEditEventArgs.cs
- ValidatingPropertiesEventArgs.cs
- MsmqHostedTransportConfiguration.cs