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
- InternalException.cs
- FirewallWrapper.cs
- BrowserDefinitionCollection.cs
- ChildTable.cs
- TemplateBaseAction.cs
- DbUpdateCommandTree.cs
- figurelengthconverter.cs
- HttpResponseHeader.cs
- RuntimeCompatibilityAttribute.cs
- WebReferencesBuildProvider.cs
- DescendantQuery.cs
- DataGridPageChangedEventArgs.cs
- DataTableCollection.cs
- XmlSchemaSimpleTypeUnion.cs
- Highlights.cs
- HtmlHead.cs
- StateManagedCollection.cs
- StateChangeEvent.cs
- TypeInfo.cs
- FieldNameLookup.cs
- ComboBox.cs
- CdpEqualityComparer.cs
- Int64.cs
- RandomNumberGenerator.cs
- DbConnectionFactory.cs
- Automation.cs
- RegistryHandle.cs
- PathParser.cs
- SizeAnimationClockResource.cs
- ProxyManager.cs
- CanExecuteRoutedEventArgs.cs
- TableCell.cs
- DefaultMemberAttribute.cs
- PageTheme.cs
- ManipulationVelocities.cs
- WhileDesigner.xaml.cs
- ParseHttpDate.cs
- Privilege.cs
- OperandQuery.cs
- DesignerCommandAdapter.cs
- PagedDataSource.cs
- PagerSettings.cs
- TypedColumnHandler.cs
- ObjectSelectorEditor.cs
- DoubleLinkListEnumerator.cs
- Soap12ProtocolReflector.cs
- OpCellTreeNode.cs
- BigInt.cs
- SqlConnectionManager.cs
- LocalValueEnumerator.cs
- ResourceType.cs
- _ProxyRegBlob.cs
- _emptywebproxy.cs
- PageAsyncTask.cs
- ServicesUtilities.cs
- StreamGeometryContext.cs
- XhtmlBasicTextBoxAdapter.cs
- GAC.cs
- ModelItemKeyValuePair.cs
- DbDataAdapter.cs
- AppDomain.cs
- SerializerWriterEventHandlers.cs
- SqlDataSourceEnumerator.cs
- ValidationPropertyAttribute.cs
- SpanIndex.cs
- HttpRuntimeSection.cs
- SingleConverter.cs
- WebRequestModulesSection.cs
- DataPointer.cs
- TemplatePropertyEntry.cs
- SqlTypesSchemaImporter.cs
- LicenseContext.cs
- ServiceHttpModule.cs
- DesignerActionHeaderItem.cs
- SQLBinary.cs
- GridToolTip.cs
- AssociationSet.cs
- SchemaAttDef.cs
- ServiceRouteHandler.cs
- BitmapEffectCollection.cs
- FrameworkElement.cs
- GridSplitterAutomationPeer.cs
- EnumUnknown.cs
- XmlIgnoreAttribute.cs
- ContentTextAutomationPeer.cs
- Registry.cs
- DBConnectionString.cs
- EncryptedType.cs
- DCSafeHandle.cs
- OpCellTreeNode.cs
- SystemResourceKey.cs
- translator.cs
- PtsCache.cs
- HtmlImage.cs
- HttpApplication.cs
- RelatedPropertyManager.cs
- Material.cs
- CodeCatchClause.cs
- SqlCharStream.cs
- TaskFileService.cs