Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Hashtable.cs
- DispatcherExceptionEventArgs.cs
- UndoManager.cs
- QueryCursorEventArgs.cs
- OdbcHandle.cs
- OleDbDataReader.cs
- XmlSchemaIdentityConstraint.cs
- SequenceNumber.cs
- TextEditorSpelling.cs
- ControlDesigner.cs
- PresentationTraceSources.cs
- MissingMethodException.cs
- TextParagraph.cs
- FontStyles.cs
- DataContractSerializerMessageContractImporter.cs
- ProfessionalColors.cs
- Encoding.cs
- MetadataArtifactLoader.cs
- ApplicationDirectory.cs
- AnnotationAdorner.cs
- PriorityItem.cs
- BookmarkEventArgs.cs
- TraceSource.cs
- FormatSelectingMessageInspector.cs
- ModelUIElement3D.cs
- ButtonRenderer.cs
- DynamicActionMessageFilter.cs
- ValueConversionAttribute.cs
- UInt16Storage.cs
- PropertyRecord.cs
- Overlapped.cs
- SqlNode.cs
- _ConnectOverlappedAsyncResult.cs
- SimpleBitVector32.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TemplateBindingExtension.cs
- TableItemStyle.cs
- MemoryMappedViewStream.cs
- UpdatePanel.cs
- DataGridViewCellMouseEventArgs.cs
- OleCmdHelper.cs
- RequestResizeEvent.cs
- EmbossBitmapEffect.cs
- securestring.cs
- MetaColumn.cs
- RoleManagerEventArgs.cs
- BCLDebug.cs
- ArrayWithOffset.cs
- StateMachineAction.cs
- BamlCollectionHolder.cs
- MouseGestureValueSerializer.cs
- ResourceCollectionInfo.cs
- CodeFieldReferenceExpression.cs
- OleDbParameterCollection.cs
- DbProviderFactory.cs
- XmlChildNodes.cs
- CodeObject.cs
- SelectionProviderWrapper.cs
- LocationSectionRecord.cs
- InputScopeNameConverter.cs
- MultiSelectRootGridEntry.cs
- WindowHideOrCloseTracker.cs
- RelationshipWrapper.cs
- PreviewPageInfo.cs
- ComPlusTypeLoader.cs
- loginstatus.cs
- Queue.cs
- HttpCacheVary.cs
- FixedPage.cs
- TreeNode.cs
- MgmtResManager.cs
- RichTextBox.cs
- RayHitTestParameters.cs
- PkcsMisc.cs
- Accessors.cs
- SecurityProtocolCorrelationState.cs
- PropertyValueUIItem.cs
- EntityDataSourceDesigner.cs
- Rule.cs
- StreamInfo.cs
- NameValuePermission.cs
- QuaternionKeyFrameCollection.cs
- BinaryConverter.cs
- XmlCDATASection.cs
- VirtualDirectoryMapping.cs
- URLMembershipCondition.cs
- TaiwanLunisolarCalendar.cs
- Renderer.cs
- GeneralTransform3DGroup.cs
- TextEffectCollection.cs
- ProgressBarRenderer.cs
- SingleKeyFrameCollection.cs
- SamlAudienceRestrictionCondition.cs
- WorkflowValidationFailedException.cs
- UnitySerializationHolder.cs
- ElementAction.cs
- DataGridViewCellLinkedList.cs
- Point3DKeyFrameCollection.cs
- WorkflowMessageEventArgs.cs
- SecurityHelper.cs