Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / FileDetails.cs / 1305376 / 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
- Select.cs
- TdsParserSessionPool.cs
- PtsContext.cs
- ComponentEditorForm.cs
- DodSequenceMerge.cs
- VectorValueSerializer.cs
- AutomationPropertyInfo.cs
- OletxTransactionHeader.cs
- ComboBox.cs
- DocumentReference.cs
- DecoderNLS.cs
- ImageField.cs
- ControlCachePolicy.cs
- InputScopeAttribute.cs
- Function.cs
- BrushValueSerializer.cs
- XsltContext.cs
- BamlRecordReader.cs
- DoubleAnimationUsingKeyFrames.cs
- PauseStoryboard.cs
- ClientCredentials.cs
- CryptoKeySecurity.cs
- InvalidOleVariantTypeException.cs
- CodeDelegateCreateExpression.cs
- IpcPort.cs
- StartUpEventArgs.cs
- SynchronousChannelMergeEnumerator.cs
- TimeStampChecker.cs
- InputManager.cs
- GestureRecognizer.cs
- PasswordPropertyTextAttribute.cs
- FontStretch.cs
- MachineKeyConverter.cs
- SoapReflector.cs
- DiscoveryDocumentSearchPattern.cs
- StringToken.cs
- Transform3DGroup.cs
- XmlNamedNodeMap.cs
- CapabilitiesSection.cs
- EventMap.cs
- PageCache.cs
- GcSettings.cs
- System.Data.OracleClient_BID.cs
- XmlValidatingReaderImpl.cs
- PersonalizationStateQuery.cs
- XmlSchemaResource.cs
- IndentedWriter.cs
- AbstractSvcMapFileLoader.cs
- IconBitmapDecoder.cs
- graph.cs
- DataGridViewCellParsingEventArgs.cs
- CatalogUtil.cs
- InternalConfigEventArgs.cs
- CharEntityEncoderFallback.cs
- CommandID.cs
- CategoryAttribute.cs
- FileEnumerator.cs
- DataSet.cs
- ByteAnimationBase.cs
- SignatureToken.cs
- RSAPKCS1SignatureDeformatter.cs
- XmlQueryRuntime.cs
- ToolStripSeparator.cs
- itemelement.cs
- ToolStripRendererSwitcher.cs
- DbCommandTree.cs
- StrokeNodeOperations.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- BitStack.cs
- OleStrCAMarshaler.cs
- Win32KeyboardDevice.cs
- XamlClipboardData.cs
- Comparer.cs
- WebPartConnectionsCloseVerb.cs
- ChainedAsyncResult.cs
- UnauthorizedWebPart.cs
- DescendantBaseQuery.cs
- SharingService.cs
- FrugalMap.cs
- TextBox.cs
- CharUnicodeInfo.cs
- BindingListCollectionView.cs
- ExtenderProvidedPropertyAttribute.cs
- CodeRemoveEventStatement.cs
- LineMetrics.cs
- KeyValuePair.cs
- VerificationException.cs
- RSAProtectedConfigurationProvider.cs
- HandledMouseEvent.cs
- FlowDocumentView.cs
- XmlDictionaryReaderQuotasElement.cs
- DBAsyncResult.cs
- DesignerAutoFormatCollection.cs
- ListItemViewControl.cs
- WebBaseEventKeyComparer.cs
- StrokeCollection.cs
- ToolStripSeparator.cs
- WindowsTab.cs
- TabControlEvent.cs
- Listbox.cs