Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / WebBaseEventKeyComparer.cs / 1 / WebBaseEventKeyComparer.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.ComponentModel; using System.Web.Hosting; using System.Web.Util; using System.Web.Configuration; using System.Web.Management; using System.Web.Compilation; internal class WebBaseEventKeyComparer : IEqualityComparer { public new bool Equals(object x, object y) { CustomWebEventKey xKey = (CustomWebEventKey)x; CustomWebEventKey yKey = (CustomWebEventKey)y; if (xKey._eventCode == yKey._eventCode && xKey._type.Equals(yKey._type)) { return true; } return false; } public int GetHashCode(object obj) { return ((CustomWebEventKey)obj)._eventCode ^ ((CustomWebEventKey)obj)._type.GetHashCode(); } public int Compare(object x, object y) { CustomWebEventKey xKey = (CustomWebEventKey)x; CustomWebEventKey yKey = (CustomWebEventKey)y; int xEventCode = xKey._eventCode; int yEventCode = yKey._eventCode; if (xEventCode == yEventCode) { Type xType = xKey._type; Type yType = yKey._type; if (xType.Equals(yType)) { return 0; } else { return Comparer.Default.Compare(xType.ToString(), yType.ToString()); } } else { if (xEventCode > yEventCode) { return 1; } else { return -1; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Event.cs
- CqlLexer.cs
- SecurityTraceRecordHelper.cs
- ByteConverter.cs
- DataGridCellsPanel.cs
- MsmqIntegrationValidationBehavior.cs
- DataProtection.cs
- PageEventArgs.cs
- Point3DValueSerializer.cs
- BoolExpressionVisitors.cs
- DataIdProcessor.cs
- SignedInfo.cs
- PageVisual.cs
- ListBox.cs
- NavigationCommands.cs
- XmlDigitalSignatureProcessor.cs
- Expander.cs
- VersionedStream.cs
- BoolExpr.cs
- CompModSwitches.cs
- ScriptReferenceBase.cs
- _emptywebproxy.cs
- SmiTypedGetterSetter.cs
- FeatureSupport.cs
- FileVersionInfo.cs
- Trace.cs
- IndexerNameAttribute.cs
- DesignTimeTemplateParser.cs
- UnionExpr.cs
- SqlNamer.cs
- MsmqAppDomainProtocolHandler.cs
- InputBinder.cs
- OracleTimeSpan.cs
- LoginAutoFormat.cs
- GuidTagList.cs
- ProfileGroupSettingsCollection.cs
- SearchForVirtualItemEventArgs.cs
- ScalarType.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- UniqueEventHelper.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- UIElementCollection.cs
- X509CertificateCollection.cs
- UrlPath.cs
- BitArray.cs
- NativeWrapper.cs
- Pen.cs
- RegexMatch.cs
- CollectionViewGroupInternal.cs
- OrthographicCamera.cs
- LocalFileSettingsProvider.cs
- ResourceContainer.cs
- SessionState.cs
- Switch.cs
- DataGridRow.cs
- ASCIIEncoding.cs
- DoubleLinkList.cs
- DiscoveryDocumentLinksPattern.cs
- BuildDependencySet.cs
- ArrayTypeMismatchException.cs
- TextFormatter.cs
- ProviderMetadataCachedInformation.cs
- BuildDependencySet.cs
- StorageBasedPackageProperties.cs
- Parallel.cs
- SspiNegotiationTokenAuthenticatorState.cs
- TypeBrowserDialog.cs
- DecimalStorage.cs
- CreateUserErrorEventArgs.cs
- BuildProviderAppliesToAttribute.cs
- TrackingServices.cs
- fixedPageContentExtractor.cs
- storepermissionattribute.cs
- EventLogPermissionEntryCollection.cs
- SingleConverter.cs
- SerialPinChanges.cs
- ToggleButtonAutomationPeer.cs
- ScrollItemPatternIdentifiers.cs
- SubpageParaClient.cs
- StrokeNode.cs
- CapabilitiesState.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ExtendedPropertyDescriptor.cs
- GridViewCancelEditEventArgs.cs
- XPathAncestorQuery.cs
- BaseDataBoundControl.cs
- DocumentViewer.cs
- NamespaceQuery.cs
- ColorComboBox.cs
- Rect.cs
- BindingCollection.cs
- NullRuntimeConfig.cs
- TreeNodeConverter.cs
- OleDbConnection.cs
- DynamicPropertyReader.cs
- DeviceSpecificDesigner.cs
- CreateParams.cs
- TimelineClockCollection.cs
- OuterGlowBitmapEffect.cs
- OperationContextScope.cs