Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ScrollProviderWrapper.cs
- BamlRecordHelper.cs
- Latin1Encoding.cs
- HttpWebRequest.cs
- PageCodeDomTreeGenerator.cs
- TraceListeners.cs
- SqlConnection.cs
- XPathBinder.cs
- CustomPopupPlacement.cs
- ToolStripLocationCancelEventArgs.cs
- errorpatternmatcher.cs
- GridViewRowCollection.cs
- xsdvalidator.cs
- MenuStrip.cs
- IntegerValidator.cs
- ExclusiveTcpListener.cs
- FilteredXmlReader.cs
- FunctionDescription.cs
- EventLog.cs
- XamlToRtfWriter.cs
- ClientSettingsSection.cs
- WebConfigurationFileMap.cs
- Compiler.cs
- GridErrorDlg.cs
- TextTreeTextElementNode.cs
- TriggerActionCollection.cs
- MarshalByValueComponent.cs
- UriSectionReader.cs
- DataList.cs
- ServiceAuthorizationManager.cs
- FrameworkTemplate.cs
- BroadcastEventHelper.cs
- ZipPackagePart.cs
- ObjectParameter.cs
- MultiView.cs
- SplashScreen.cs
- XmlNavigatorFilter.cs
- KoreanLunisolarCalendar.cs
- CompiledAction.cs
- WebColorConverter.cs
- Model3D.cs
- CdpEqualityComparer.cs
- ServiceOperationParameter.cs
- FileLevelControlBuilderAttribute.cs
- Rule.cs
- WindowsStartMenu.cs
- WithStatement.cs
- MarginCollapsingState.cs
- FileController.cs
- SrgsRulesCollection.cs
- BufferBuilder.cs
- FormattedTextSymbols.cs
- FixedTextPointer.cs
- SqlDependencyUtils.cs
- OperationPerformanceCounters.cs
- DetailsView.cs
- SafeEventHandle.cs
- DecoratedNameAttribute.cs
- BaseEntityWrapper.cs
- RemoteWebConfigurationHostServer.cs
- ListMarkerLine.cs
- ping.cs
- StorageMappingItemCollection.cs
- ScriptingProfileServiceSection.cs
- RtfControls.cs
- HtmlInputFile.cs
- DesignerAdapterAttribute.cs
- HierarchicalDataBoundControl.cs
- AccessViolationException.cs
- EventLogPermissionEntry.cs
- ManagedWndProcTracker.cs
- SqlError.cs
- SoapServerProtocol.cs
- MimeBasePart.cs
- IdentitySection.cs
- SocketException.cs
- XmlQualifiedName.cs
- HtmlTableRow.cs
- safePerfProviderHandle.cs
- ListenerAdaptersInstallComponent.cs
- NameSpaceExtractor.cs
- ServiceOperationParameter.cs
- DeviceContext.cs
- FrameworkPropertyMetadata.cs
- BadImageFormatException.cs
- ObjectSerializerFactory.cs
- PointAnimationBase.cs
- ViewCellSlot.cs
- FilterElement.cs
- Thickness.cs
- RelationshipManager.cs
- HwndSubclass.cs
- ReferencedType.cs
- Image.cs
- XmlDataSourceView.cs
- GridViewAutomationPeer.cs
- Table.cs
- SiteMapPath.cs
- PublisherIdentityPermission.cs
- PriorityRange.cs