Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Configuration / System / Configuration / Internal / FileVersion.cs / 1 / FileVersion.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration.Internal { using System.Configuration; using System.IO; using System.Security.Permissions; using System.Reflection; using System.Threading; using System.Security; using System.CodeDom.Compiler; using Microsoft.Win32; #if !FEATURE_PAL using System.Security.AccessControl; #endif internal class FileVersion { bool _exists; long _fileSize; DateTime _utcCreationTime; DateTime _utcLastWriteTime; internal FileVersion(bool exists, long fileSize, DateTime utcCreationTime, DateTime utcLastWriteTime) { _exists = exists; _fileSize = fileSize; _utcCreationTime = utcCreationTime; _utcLastWriteTime = utcLastWriteTime; } public override bool Equals(Object obj) { FileVersion other = obj as FileVersion; return other != null && _exists == other._exists && _fileSize == other._fileSize && _utcCreationTime == other._utcCreationTime && _utcLastWriteTime == other._utcLastWriteTime; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration.Internal { using System.Configuration; using System.IO; using System.Security.Permissions; using System.Reflection; using System.Threading; using System.Security; using System.CodeDom.Compiler; using Microsoft.Win32; #if !FEATURE_PAL using System.Security.AccessControl; #endif internal class FileVersion { bool _exists; long _fileSize; DateTime _utcCreationTime; DateTime _utcLastWriteTime; internal FileVersion(bool exists, long fileSize, DateTime utcCreationTime, DateTime utcLastWriteTime) { _exists = exists; _fileSize = fileSize; _utcCreationTime = utcCreationTime; _utcLastWriteTime = utcLastWriteTime; } public override bool Equals(Object obj) { FileVersion other = obj as FileVersion; return other != null && _exists == other._exists && _fileSize == other._fileSize && _utcCreationTime == other._utcCreationTime && _utcLastWriteTime == other._utcLastWriteTime; } public override int GetHashCode() { return base.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
- Missing.cs
- XmlResolver.cs
- DataViewManagerListItemTypeDescriptor.cs
- NamedPipeTransportElement.cs
- DataServiceQueryContinuation.cs
- DeferredSelectedIndexReference.cs
- QueryContinueDragEvent.cs
- ExceptionUtil.cs
- CodePropertyReferenceExpression.cs
- CheckBoxRenderer.cs
- AmbientProperties.cs
- IdentityModelStringsVersion1.cs
- SessionEndedEventArgs.cs
- SqlDataSourceView.cs
- WebEncodingValidator.cs
- WbemException.cs
- Buffer.cs
- DocumentReference.cs
- RegexWorker.cs
- DataTableMappingCollection.cs
- DtdParser.cs
- RevocationPoint.cs
- DistributedTransactionPermission.cs
- ComplexObject.cs
- Soap11ServerProtocol.cs
- HtmlImage.cs
- MultiTrigger.cs
- EventItfInfo.cs
- TemplateBindingExpressionConverter.cs
- InvalidTimeZoneException.cs
- ExitEventArgs.cs
- CqlGenerator.cs
- MessageSmuggler.cs
- CurrentChangingEventManager.cs
- TimelineCollection.cs
- TheQuery.cs
- GeneralTransformGroup.cs
- Set.cs
- ProgramPublisher.cs
- SmtpNetworkElement.cs
- DateTimeSerializationSection.cs
- Help.cs
- WorkflowInstanceRecord.cs
- ISFClipboardData.cs
- DataBinding.cs
- AffineTransform3D.cs
- PointAnimationUsingKeyFrames.cs
- SystemIcmpV6Statistics.cs
- CancellationTokenSource.cs
- DecimalAnimationUsingKeyFrames.cs
- ChangeBlockUndoRecord.cs
- PolicyStatement.cs
- XPathMessageFilterElementComparer.cs
- SingleSelectRootGridEntry.cs
- KeyEvent.cs
- AttributeCollection.cs
- DataGridViewCheckBoxColumn.cs
- DataGridViewToolTip.cs
- PerformanceCounter.cs
- GradientStop.cs
- LogicalMethodInfo.cs
- CellConstantDomain.cs
- SqlDataAdapter.cs
- HtmlTable.cs
- CorrelationTokenTypeConvertor.cs
- streamingZipPartStream.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- DataChangedEventManager.cs
- AnimatedTypeHelpers.cs
- TagMapInfo.cs
- RawTextInputReport.cs
- SynchronizationLockException.cs
- AttributeQuery.cs
- SqlInfoMessageEvent.cs
- SqlUtils.cs
- SmiEventSink.cs
- IgnoreSection.cs
- PersistChildrenAttribute.cs
- GPPOINTF.cs
- RuntimeArgumentHandle.cs
- ConversionContext.cs
- Attributes.cs
- UnsafeNativeMethods.cs
- Latin1Encoding.cs
- StringWriter.cs
- COM2ExtendedTypeConverter.cs
- LocatorPartList.cs
- SqlDataReaderSmi.cs
- TextEditorTables.cs
- Instrumentation.cs
- SQLInt16Storage.cs
- ActivitySurrogate.cs
- TreeBuilder.cs
- EntityContainerRelationshipSet.cs
- Stackframe.cs
- TypeUnloadedException.cs
- PrintController.cs
- FrameworkElement.cs
- ListSortDescription.cs
- TableCellCollection.cs