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
- ReadOnlyCollectionBuilder.cs
- NameTable.cs
- sqlpipe.cs
- TextRange.cs
- ConstraintCollection.cs
- LeftCellWrapper.cs
- ClassicBorderDecorator.cs
- OLEDB_Enum.cs
- ListViewContainer.cs
- RowsCopiedEventArgs.cs
- Stack.cs
- CodeGenerator.cs
- DataGridViewCellValidatingEventArgs.cs
- ReadOnlyDataSource.cs
- XpsDocument.cs
- XMLSchema.cs
- PositiveTimeSpanValidatorAttribute.cs
- ArrayTypeMismatchException.cs
- ClaimSet.cs
- RenderData.cs
- Rijndael.cs
- PageCatalogPartDesigner.cs
- NoClickablePointException.cs
- BaseCollection.cs
- ApplicationException.cs
- MetadataProperty.cs
- SrgsSemanticInterpretationTag.cs
- TableAdapterManagerGenerator.cs
- ColumnWidthChangingEvent.cs
- RadioButtonRenderer.cs
- WebMessageEncodingBindingElement.cs
- OneOfElement.cs
- BoolLiteral.cs
- WebSysDescriptionAttribute.cs
- InOutArgument.cs
- NotSupportedException.cs
- CrossSiteScriptingValidation.cs
- arclist.cs
- SqlInternalConnectionTds.cs
- Events.cs
- DocumentGridContextMenu.cs
- TextureBrush.cs
- LineBreakRecord.cs
- AssemblyHelper.cs
- ToolStripCodeDomSerializer.cs
- ConnectionOrientedTransportBindingElement.cs
- UserControlParser.cs
- RoutingConfiguration.cs
- StylusButton.cs
- HtmlTableCellCollection.cs
- HostProtectionException.cs
- DataTableNameHandler.cs
- ClientEventManager.cs
- TraceProvider.cs
- DefaultMemberAttribute.cs
- SmtpDateTime.cs
- Models.cs
- SystemColorTracker.cs
- ImportCatalogPart.cs
- AjaxFrameworkAssemblyAttribute.cs
- BlobPersonalizationState.cs
- SecureUICommand.cs
- SoapAttributes.cs
- PathFigure.cs
- Literal.cs
- ResourceWriter.cs
- PropVariant.cs
- KnownTypes.cs
- InkCanvasFeedbackAdorner.cs
- CodeSubDirectoriesCollection.cs
- MDIControlStrip.cs
- BrowserCapabilitiesFactoryBase.cs
- SchemaReference.cs
- XmlSchemaGroup.cs
- X509CertificateCollection.cs
- ColorConverter.cs
- ListItemCollection.cs
- SoapHttpTransportImporter.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- TabControl.cs
- QueryConverter.cs
- BaseUriHelper.cs
- ManagementScope.cs
- DispatcherExceptionFilterEventArgs.cs
- CLRBindingWorker.cs
- VsPropertyGrid.cs
- InvalidPrinterException.cs
- WebPartCancelEventArgs.cs
- IdentityReference.cs
- XmlBindingWorker.cs
- DesignerDataColumn.cs
- UserInitiatedNavigationPermission.cs
- CqlLexer.cs
- TabPage.cs
- XmlSchemaSubstitutionGroup.cs
- Size.cs
- DesignerActionItemCollection.cs
- SourceSwitch.cs
- FilterQuery.cs
- XmlObjectSerializerContext.cs