Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- KeyboardInputProviderAcquireFocusEventArgs.cs
- BaseCodeDomTreeGenerator.cs
- XmlQueryOutput.cs
- HttpCookiesSection.cs
- Identifier.cs
- TextFindEngine.cs
- TableLayoutPanel.cs
- FileDialog.cs
- XmlWriter.cs
- WindowsListViewGroupHelper.cs
- DragDrop.cs
- SectionUpdates.cs
- MsmqActivation.cs
- CodePageUtils.cs
- InternalBase.cs
- EditorPart.cs
- WebPermission.cs
- StreamResourceInfo.cs
- CallbackHandler.cs
- Logging.cs
- DbModificationClause.cs
- RequestSecurityTokenResponse.cs
- ExpanderAutomationPeer.cs
- HttpResponseInternalWrapper.cs
- objectresult_tresulttype.cs
- TimeEnumHelper.cs
- WebPartCatalogAddVerb.cs
- Int64AnimationBase.cs
- PropertyConverter.cs
- columnmapkeybuilder.cs
- XmlLinkedNode.cs
- CatalogZoneBase.cs
- DataBoundLiteralControl.cs
- EdmPropertyAttribute.cs
- Timeline.cs
- ObjectManager.cs
- SplashScreen.cs
- BindingRestrictions.cs
- HelpKeywordAttribute.cs
- FontFaceLayoutInfo.cs
- BCLDebug.cs
- ConfigurationPropertyAttribute.cs
- RegexBoyerMoore.cs
- SafeRegistryHandle.cs
- VisualStyleRenderer.cs
- CodeArrayIndexerExpression.cs
- ObjectCloneHelper.cs
- AssemblyAssociatedContentFileAttribute.cs
- ViewGenerator.cs
- DefaultValueConverter.cs
- SafeCryptoHandles.cs
- ConfigurationUtility.cs
- ExceptionRoutedEventArgs.cs
- XmlSchemaAny.cs
- ObjectDataSourceStatusEventArgs.cs
- WeakReadOnlyCollection.cs
- XmlSchemaGroupRef.cs
- NamedElement.cs
- EntityDataSourceConfigureObjectContext.cs
- IisTraceWebEventProvider.cs
- login.cs
- SystemIPInterfaceStatistics.cs
- SqlTypeSystemProvider.cs
- BitmapCodecInfoInternal.cs
- FlowDocumentFormatter.cs
- StreamWriter.cs
- WebPartZone.cs
- StackOverflowException.cs
- Dynamic.cs
- InternalConfigSettingsFactory.cs
- AuthenticationModulesSection.cs
- ModelItemCollectionImpl.cs
- DataGridViewTextBoxColumn.cs
- DispatchWrapper.cs
- ThreadSafeList.cs
- TextServicesDisplayAttribute.cs
- AsyncOperationLifetimeManager.cs
- ThemeDirectoryCompiler.cs
- DocumentsTrace.cs
- NonSerializedAttribute.cs
- SystemNetworkInterface.cs
- FlowLayoutSettings.cs
- EventLog.cs
- RSAProtectedConfigurationProvider.cs
- MissingMethodException.cs
- SecurityException.cs
- SelectionRange.cs
- BitSet.cs
- Point4DValueSerializer.cs
- FixedPosition.cs
- CodeParameterDeclarationExpressionCollection.cs
- LocatorGroup.cs
- StatusBarPanelClickEvent.cs
- TextPointer.cs
- CaseInsensitiveComparer.cs
- EntityClientCacheKey.cs
- DrawingServices.cs
- MinimizableAttributeTypeConverter.cs
- ProtectedConfigurationSection.cs
- QueryOutputWriterV1.cs