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
- Transform.cs
- ComboBox.cs
- MetadataElement.cs
- DbReferenceCollection.cs
- COM2IPerPropertyBrowsingHandler.cs
- EntityDataSourceEntitySetNameItem.cs
- InOutArgumentConverter.cs
- XmlHierarchicalEnumerable.cs
- XmlTextWriter.cs
- RC2CryptoServiceProvider.cs
- DescendentsWalkerBase.cs
- TagPrefixInfo.cs
- InvocationExpression.cs
- Message.cs
- SiteMapDataSourceView.cs
- ByteAnimationBase.cs
- XmlnsDefinitionAttribute.cs
- DesignerAttribute.cs
- KeySpline.cs
- OleDbParameterCollection.cs
- DataControlFieldHeaderCell.cs
- ComponentCommands.cs
- ProtocolState.cs
- NativeWindow.cs
- InputScopeAttribute.cs
- COM2IPerPropertyBrowsingHandler.cs
- NamedPermissionSet.cs
- RuntimeDelegateArgument.cs
- XmlSchemaRedefine.cs
- DrawingBrush.cs
- OleDbException.cs
- RsaSecurityToken.cs
- QueryPageSettingsEventArgs.cs
- ExecutorLocksHeldException.cs
- FileAuthorizationModule.cs
- WebPartsPersonalizationAuthorization.cs
- BitmapEncoder.cs
- ReflectionHelper.cs
- XmlObjectSerializerContext.cs
- AppDomainAttributes.cs
- ThreadExceptionDialog.cs
- ArrayList.cs
- CacheManager.cs
- MemberBinding.cs
- RoleGroup.cs
- ReferenceConverter.cs
- EntityDataSourceReferenceGroup.cs
- SafeEventHandle.cs
- DrawingVisualDrawingContext.cs
- EventsTab.cs
- PointF.cs
- WebPartAuthorizationEventArgs.cs
- SQLMembershipProvider.cs
- XmlExceptionHelper.cs
- AsnEncodedData.cs
- TemplatePartAttribute.cs
- Evidence.cs
- SqlProcedureAttribute.cs
- ScriptMethodAttribute.cs
- StateManagedCollection.cs
- WebPartEventArgs.cs
- UriTemplateCompoundPathSegment.cs
- DataPagerFieldCollection.cs
- NullableLongMinMaxAggregationOperator.cs
- RegexMatch.cs
- ImageMap.cs
- DocumentPageTextView.cs
- LocationReference.cs
- VariableQuery.cs
- FlowNode.cs
- StringExpressionSet.cs
- TraceData.cs
- ExceptionRoutedEventArgs.cs
- UnmanagedMarshal.cs
- PropertyGrid.cs
- QuaternionAnimation.cs
- SweepDirectionValidation.cs
- DataColumnPropertyDescriptor.cs
- KnownAssemblyEntry.cs
- SoapFaultCodes.cs
- WinEventQueueItem.cs
- CollectionBuilder.cs
- FixedSOMLineRanges.cs
- MenuItem.cs
- WmlCalendarAdapter.cs
- ProfileBuildProvider.cs
- XmlMapping.cs
- OperatingSystem.cs
- DeclarationUpdate.cs
- BuildProvider.cs
- WorkflowViewService.cs
- DataPager.cs
- NativeCompoundFileAPIs.cs
- SQLBinaryStorage.cs
- NameScope.cs
- MaskInputRejectedEventArgs.cs
- TemplateContent.cs
- Reference.cs
- ResourceAssociationType.cs
- ReflectTypeDescriptionProvider.cs