Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Ref.cs / 1305376 / Ref.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System.Diagnostics; namespace System.Xml { ////// Ref class is used to verify string atomization in debug mode. /// internal static class Ref { public static bool Equal(string strA, string strB) { #if DEBUG if (((object) strA != (object) strB) && string.Equals(strA, strB)) Debug.Assert(false, "Ref.Equal: Object comparison used for non-atomized string '" + strA + "'"); #endif return (object) strA == (object) strB; } // Prevent typos. If someone uses Ref.Equals instead of Ref.Equal, // the program would not compile. public static new void Equals(object objA, object objB) { } } } // 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
- StorageScalarPropertyMapping.cs
- SpeakCompletedEventArgs.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- ProcessThreadCollection.cs
- Light.cs
- SessionStateModule.cs
- CodeObjectCreateExpression.cs
- HtmlMeta.cs
- X509Chain.cs
- SoapEnvelopeProcessingElement.cs
- OptimalBreakSession.cs
- PngBitmapEncoder.cs
- BasicExpressionVisitor.cs
- OpenTypeLayout.cs
- Viewport3DVisual.cs
- ObjectTag.cs
- EventLogPropertySelector.cs
- DisplayToken.cs
- _DynamicWinsockMethods.cs
- Dump.cs
- SchemaCreator.cs
- MaterializeFromAtom.cs
- RootBuilder.cs
- KeyTime.cs
- HashSetEqualityComparer.cs
- CounterCreationData.cs
- TypeConverter.cs
- EventDescriptor.cs
- Nodes.cs
- SHA512Managed.cs
- XmlArrayAttribute.cs
- TcpConnectionPoolSettingsElement.cs
- XmlHierarchicalEnumerable.cs
- StringAnimationBase.cs
- StreamWriter.cs
- DynamicValidatorEventArgs.cs
- DefaultTextStoreTextComposition.cs
- ToolBarOverflowPanel.cs
- SoapAttributeOverrides.cs
- CharConverter.cs
- JulianCalendar.cs
- UserValidatedEventArgs.cs
- Error.cs
- PriorityRange.cs
- TextParaLineResult.cs
- BinaryObjectInfo.cs
- WebWorkflowRole.cs
- HexParser.cs
- RawKeyboardInputReport.cs
- PriorityQueue.cs
- IisTraceWebEventProvider.cs
- EventMap.cs
- ExpressionStringBuilder.cs
- ObjectManager.cs
- HashMembershipCondition.cs
- UnmanagedMarshal.cs
- SortFieldComparer.cs
- TextEditorDragDrop.cs
- DataBinding.cs
- EmptyElement.cs
- DetailsView.cs
- Encoder.cs
- RuntimeConfigLKG.cs
- BufferBuilder.cs
- DocComment.cs
- UpdateManifestForBrowserApplication.cs
- RequestNavigateEventArgs.cs
- TrackingMemoryStream.cs
- TextDecorationLocationValidation.cs
- sqlmetadatafactory.cs
- Monitor.cs
- ReferencedType.cs
- HTTPNotFoundHandler.cs
- DispatcherTimer.cs
- SectionInformation.cs
- Debug.cs
- SelectiveScrollingGrid.cs
- EventItfInfo.cs
- UserMapPath.cs
- SettingsSavedEventArgs.cs
- SerializationException.cs
- EventLogHandle.cs
- MatrixKeyFrameCollection.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- OletxDependentTransaction.cs
- WebBrowsableAttribute.cs
- UnknownWrapper.cs
- IRCollection.cs
- SystemIPInterfaceProperties.cs
- RepeaterItemCollection.cs
- WindowsFormsSectionHandler.cs
- EdmConstants.cs
- Ticks.cs
- Rotation3DAnimation.cs
- SR.cs
- VisualProxy.cs
- ObjectStateManager.cs
- SiteMapDesignerDataSourceView.cs
- HttpRequestCacheValidator.cs
- WsdlImporterElementCollection.cs