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
- DesignerDataStoredProcedure.cs
- GlobalizationSection.cs
- Base64Decoder.cs
- CodeMemberMethod.cs
- BrowsableAttribute.cs
- BindToObject.cs
- AxisAngleRotation3D.cs
- TextServicesHost.cs
- VirtualizingStackPanel.cs
- DataControlFieldHeaderCell.cs
- MenuItemBinding.cs
- InvokeHandlers.cs
- StyleSheetRefUrlEditor.cs
- WindowsProgressbar.cs
- HeaderElement.cs
- ListControlConvertEventArgs.cs
- TemplateEditingVerb.cs
- TextDecorationCollection.cs
- GeneralTransform3DGroup.cs
- WebPartDisplayModeCancelEventArgs.cs
- QilInvoke.cs
- StateMachineSubscriptionManager.cs
- WebPartDisplayModeCancelEventArgs.cs
- ResourceSetExpression.cs
- IntPtr.cs
- UiaCoreApi.cs
- SqlClientWrapperSmiStream.cs
- TransformGroup.cs
- CqlParser.cs
- ContractMapping.cs
- RoleServiceManager.cs
- EventsTab.cs
- NonVisualControlAttribute.cs
- _RequestCacheProtocol.cs
- SafeFreeMibTable.cs
- XsdBuildProvider.cs
- TargetControlTypeAttribute.cs
- SmtpNtlmAuthenticationModule.cs
- DesignerAttribute.cs
- XPathNavigatorKeyComparer.cs
- SeverityFilter.cs
- RegexTree.cs
- FileFormatException.cs
- Quad.cs
- validationstate.cs
- DocumentGrid.cs
- sqlinternaltransaction.cs
- PhysicalFontFamily.cs
- ServiceX509SecurityTokenProvider.cs
- Pen.cs
- LogWriteRestartAreaAsyncResult.cs
- OdbcException.cs
- CacheRequest.cs
- SqlUDTStorage.cs
- COM2ExtendedUITypeEditor.cs
- AdornerPresentationContext.cs
- UrlMappingCollection.cs
- TextPenaltyModule.cs
- ReliableSessionBindingElement.cs
- IgnoreFileBuildProvider.cs
- ViewKeyConstraint.cs
- RawContentTypeMapper.cs
- graph.cs
- ToolConsole.cs
- CommandBindingCollection.cs
- Thumb.cs
- Matrix3D.cs
- RuleSettingsCollection.cs
- PartialArray.cs
- HttpContextServiceHost.cs
- IndexedGlyphRun.cs
- TableRowCollection.cs
- AuthenticatedStream.cs
- SchemaExporter.cs
- SemaphoreFullException.cs
- ArgumentOutOfRangeException.cs
- thaishape.cs
- TimeManager.cs
- GlyphsSerializer.cs
- PageWrapper.cs
- XhtmlBasicControlAdapter.cs
- ObjectDataSourceDisposingEventArgs.cs
- TypeSystem.cs
- Logging.cs
- JoinSymbol.cs
- InvalidProgramException.cs
- ReadOnlyDataSourceView.cs
- FixedElement.cs
- ValidatorCompatibilityHelper.cs
- GridPatternIdentifiers.cs
- FloaterParaClient.cs
- RadioButton.cs
- SqlFacetAttribute.cs
- XPathDocumentIterator.cs
- ExpressionPrinter.cs
- ReflectTypeDescriptionProvider.cs
- Timer.cs
- _NtlmClient.cs
- SolidColorBrush.cs
- AnnotationObservableCollection.cs