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
- DynamicQueryStringParameter.cs
- InternalSafeNativeMethods.cs
- QilUnary.cs
- UInt64.cs
- SqlCacheDependencyDatabaseCollection.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- adornercollection.cs
- SafeProcessHandle.cs
- SQLMoneyStorage.cs
- StickyNote.cs
- NumericPagerField.cs
- GeometryModel3D.cs
- odbcmetadatacolumnnames.cs
- ValidationPropertyAttribute.cs
- StoryFragments.cs
- ResourceAttributes.cs
- GatewayIPAddressInformationCollection.cs
- HttpProcessUtility.cs
- DoubleLinkListEnumerator.cs
- LabelDesigner.cs
- ClientTarget.cs
- DPCustomTypeDescriptor.cs
- Style.cs
- DataTemplateKey.cs
- MediaScriptCommandRoutedEventArgs.cs
- TypeConverterBase.cs
- Directory.cs
- InkSerializer.cs
- ResumeStoryboard.cs
- SerializationSectionGroup.cs
- Image.cs
- ISAPIWorkerRequest.cs
- ActivationWorker.cs
- ApplicationId.cs
- ObjectConverter.cs
- WorkflowStateRollbackService.cs
- CorePropertiesFilter.cs
- AsyncStreamReader.cs
- ThicknessAnimation.cs
- SmtpException.cs
- AliasedSlot.cs
- SRef.cs
- HttpSocketManager.cs
- ParseChildrenAsPropertiesAttribute.cs
- DataContractJsonSerializer.cs
- InitializerFacet.cs
- BevelBitmapEffect.cs
- SerializerProvider.cs
- ToolStripSystemRenderer.cs
- SystemIPInterfaceProperties.cs
- DataObjectAttribute.cs
- ObjectKeyFrameCollection.cs
- BStrWrapper.cs
- VersionedStreamOwner.cs
- SecondaryIndex.cs
- BlockCollection.cs
- EntityKeyElement.cs
- ListViewItemMouseHoverEvent.cs
- XamlValidatingReader.cs
- BoundColumn.cs
- ProcessInfo.cs
- CodePrimitiveExpression.cs
- HttpContextWrapper.cs
- XmlEncodedRawTextWriter.cs
- GeometryCombineModeValidation.cs
- ToggleButton.cs
- MobileControlsSectionHelper.cs
- TemplateBuilder.cs
- SecurityResources.cs
- XmlComplianceUtil.cs
- MenuStrip.cs
- EventListener.cs
- XPathDocument.cs
- XmlDomTextWriter.cs
- TextDocumentView.cs
- SoapExtension.cs
- ExeContext.cs
- StringToken.cs
- RootBuilder.cs
- ErrorTolerantObjectWriter.cs
- TextServicesPropertyRanges.cs
- DecoderExceptionFallback.cs
- ValidationResult.cs
- XmlNamespaceDeclarationsAttribute.cs
- NodeLabelEditEvent.cs
- SafeWaitHandle.cs
- EntityClassGenerator.cs
- FamilyMapCollection.cs
- FrameworkElementFactoryMarkupObject.cs
- QueryPageSettingsEventArgs.cs
- XmlDocumentFragment.cs
- ScaleTransform3D.cs
- DropDownList.cs
- ReflectPropertyDescriptor.cs
- XpsDocument.cs
- SchemaElementDecl.cs
- HttpStreamMessage.cs
- TypeDefinition.cs
- _NativeSSPI.cs
- MsmqIntegrationAppDomainProtocolHandler.cs