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
- NamedPermissionSet.cs
- BamlTreeMap.cs
- ObjectQueryExecutionPlan.cs
- HtmlSelect.cs
- RSAOAEPKeyExchangeDeformatter.cs
- CookieParameter.cs
- FileLevelControlBuilderAttribute.cs
- ScalarOps.cs
- DtdParser.cs
- XmlIlVisitor.cs
- PrintControllerWithStatusDialog.cs
- AsyncCompletedEventArgs.cs
- SimpleHandlerBuildProvider.cs
- SpecialNameAttribute.cs
- TextFormatterContext.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- SystemPens.cs
- SvcMapFile.cs
- PrimitiveXmlSerializers.cs
- SystemUdpStatistics.cs
- SessionEndedEventArgs.cs
- SqlTrackingService.cs
- EntityContainerAssociationSetEnd.cs
- EmptyControlCollection.cs
- DefaultIfEmptyQueryOperator.cs
- ReferencedCollectionType.cs
- OutputCacheProfile.cs
- TemplatedWizardStep.cs
- AuthenticationModulesSection.cs
- Maps.cs
- LogEntrySerialization.cs
- AssociationSetMetadata.cs
- EditorPartCollection.cs
- LinearGradientBrush.cs
- HttpResponseMessageProperty.cs
- ResXResourceWriter.cs
- SessionStateItemCollection.cs
- Ticks.cs
- UnhandledExceptionEventArgs.cs
- TextBlockAutomationPeer.cs
- DBCSCodePageEncoding.cs
- DocumentOrderQuery.cs
- StandardBindingCollectionElement.cs
- RowSpanVector.cs
- InvokeMethodActivity.cs
- OleDbMetaDataFactory.cs
- SelectedDatesCollection.cs
- VirtualDirectoryMappingCollection.cs
- XmlBinaryReader.cs
- RuntimeWrappedException.cs
- TryExpression.cs
- TraceHwndHost.cs
- CompilerState.cs
- ManagementClass.cs
- RenamedEventArgs.cs
- XmlDictionary.cs
- KeysConverter.cs
- UnrecognizedAssertionsBindingElement.cs
- CodeConstructor.cs
- ScrollChrome.cs
- RemoteCryptoTokenProvider.cs
- ColorContextHelper.cs
- FontClient.cs
- SqlConnectionHelper.cs
- CodeConstructor.cs
- ObjRef.cs
- FormsAuthenticationUser.cs
- SectionInformation.cs
- SystemResourceKey.cs
- PbrsForward.cs
- ResourcesGenerator.cs
- XmlByteStreamReader.cs
- String.cs
- CodeVariableReferenceExpression.cs
- MouseButtonEventArgs.cs
- WindowsUpDown.cs
- FindCriteriaApril2005.cs
- DataBindingHandlerAttribute.cs
- SkinBuilder.cs
- ImageField.cs
- DuplexChannel.cs
- WebPartActionVerb.cs
- WsdlBuildProvider.cs
- DesignBindingPropertyDescriptor.cs
- Module.cs
- DisplayMemberTemplateSelector.cs
- ConditionedDesigner.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- DataGridColumnStyleMappingNameEditor.cs
- Privilege.cs
- AppDomainProtocolHandler.cs
- TableLayoutColumnStyleCollection.cs
- CollectionEditVerbManager.cs
- DateTimeUtil.cs
- PointLightBase.cs
- AuthenticationConfig.cs
- InvariantComparer.cs
- ActivityContext.cs
- NumberFormatInfo.cs
- TextDecorationUnitValidation.cs