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
- SoapReflectionImporter.cs
- Command.cs
- DifferencingCollection.cs
- NativeMethods.cs
- TextSearch.cs
- PageHandlerFactory.cs
- PageThemeBuildProvider.cs
- TextEditorSpelling.cs
- BulletChrome.cs
- XslTransform.cs
- SQLBytes.cs
- ExceptionHelpers.cs
- PointCollection.cs
- VirtualPath.cs
- CommonObjectSecurity.cs
- ButtonColumn.cs
- PageRanges.cs
- DataGridCell.cs
- HandleCollector.cs
- InstanceCreationEditor.cs
- CustomErrorCollection.cs
- BitmapEffectInputData.cs
- ConsoleCancelEventArgs.cs
- COM2PictureConverter.cs
- ListItemDetailViewAttribute.cs
- PersonalizationProvider.cs
- RichTextBoxConstants.cs
- MsmqIntegrationOutputChannel.cs
- NavigationPropertyEmitter.cs
- DefaultExpression.cs
- TdsParserHelperClasses.cs
- BaseDataList.cs
- CounterSample.cs
- TextTreeText.cs
- HttpProfileGroupBase.cs
- Rfc2898DeriveBytes.cs
- FtpWebResponse.cs
- WindowInteropHelper.cs
- ExchangeUtilities.cs
- SolidColorBrush.cs
- SessionStateSection.cs
- EncodingDataItem.cs
- EventPropertyMap.cs
- FloatMinMaxAggregationOperator.cs
- AsyncDataRequest.cs
- CombinedGeometry.cs
- DataGridViewRow.cs
- WinFormsUtils.cs
- Tile.cs
- ProviderUtil.cs
- GridViewRowCollection.cs
- PlainXmlWriter.cs
- StrongNamePublicKeyBlob.cs
- SqlMetaData.cs
- AmbientProperties.cs
- SimpleType.cs
- JapaneseLunisolarCalendar.cs
- RemotingException.cs
- EventHandlingScope.cs
- NullableIntSumAggregationOperator.cs
- QilDataSource.cs
- PropertyMapper.cs
- RangeValueProviderWrapper.cs
- CounterSample.cs
- Property.cs
- WebPartDisplayModeCancelEventArgs.cs
- TableRowGroupCollection.cs
- TreeBuilder.cs
- ConfigurationStrings.cs
- RegistryDataKey.cs
- MatrixTransform.cs
- SmiMetaDataProperty.cs
- SingleResultAttribute.cs
- SymbolType.cs
- SmtpTransport.cs
- SchemaNames.cs
- ImportOptions.cs
- Matrix3DStack.cs
- ResXResourceReader.cs
- PlainXmlWriter.cs
- SamlAuthorizationDecisionClaimResource.cs
- unitconverter.cs
- RemoteWebConfigurationHostServer.cs
- OrderByQueryOptionExpression.cs
- MulticastNotSupportedException.cs
- CompositeCollectionView.cs
- TerminateDesigner.cs
- ToolStripControlHost.cs
- OdbcParameterCollection.cs
- AdornerPresentationContext.cs
- ReferenceConverter.cs
- XmlSchemaSimpleContentRestriction.cs
- BoolLiteral.cs
- WebHttpBindingElement.cs
- securitycriticaldataformultiplegetandset.cs
- XmlArrayAttribute.cs
- RegexBoyerMoore.cs
- BaseDataList.cs
- SchemaImporterExtension.cs
- PropertyDescriptorComparer.cs