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
- XhtmlBasicCommandAdapter.cs
- WebServiceHostFactory.cs
- ConnectionPoint.cs
- CodeCatchClauseCollection.cs
- BlurEffect.cs
- TextCompositionEventArgs.cs
- SignedInfo.cs
- Schema.cs
- CroppedBitmap.cs
- BamlResourceDeserializer.cs
- MailWriter.cs
- RijndaelManaged.cs
- QuaternionKeyFrameCollection.cs
- TypeDescriptionProviderAttribute.cs
- Memoizer.cs
- Formatter.cs
- Visual.cs
- securitycriticaldataformultiplegetandset.cs
- ReadOnlyDictionary.cs
- SHA384Managed.cs
- CodeGenerationManager.cs
- TypedTableBase.cs
- PropertyEntry.cs
- UserThread.cs
- SequentialUshortCollection.cs
- DropTarget.cs
- IntSecurity.cs
- SessionConnectionReader.cs
- LineGeometry.cs
- Exceptions.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- TextEffectCollection.cs
- CryptoApi.cs
- ClosableStream.cs
- ObjectPersistData.cs
- UriParserTemplates.cs
- DataMemberConverter.cs
- CompiledIdentityConstraint.cs
- _DigestClient.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SplitContainer.cs
- ListControl.cs
- AddInAdapter.cs
- CodeVariableReferenceExpression.cs
- FormatVersion.cs
- ScrollData.cs
- DataGridSortCommandEventArgs.cs
- Transform.cs
- DbDataAdapter.cs
- ObjectHandle.cs
- TextBoxView.cs
- SqlFactory.cs
- TrackingServices.cs
- xmlsaver.cs
- ValueUnavailableException.cs
- OdbcEnvironmentHandle.cs
- ResourceContainer.cs
- SchemaType.cs
- SapiAttributeParser.cs
- DelegateBodyWriter.cs
- MarkedHighlightComponent.cs
- hwndwrapper.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SQLDoubleStorage.cs
- ReferencedAssembly.cs
- HttpPostProtocolImporter.cs
- CheckBoxPopupAdapter.cs
- CodeGroup.cs
- TraceFilter.cs
- RoutedPropertyChangedEventArgs.cs
- ZipIOCentralDirectoryBlock.cs
- BitConverter.cs
- DocumentOrderComparer.cs
- FontEmbeddingManager.cs
- ValidationErrorCollection.cs
- Point4DValueSerializer.cs
- HttpHandlersSection.cs
- QueryOperator.cs
- Properties.cs
- SqlWebEventProvider.cs
- DataGridViewCellCancelEventArgs.cs
- WebRequestModulesSection.cs
- BinaryObjectReader.cs
- ImageSourceValueSerializer.cs
- AnimationTimeline.cs
- BinarySerializer.cs
- TemplatedControlDesigner.cs
- ReferentialConstraint.cs
- TrackingStringDictionary.cs
- UnsafeNativeMethods.cs
- WorkflowMarkupSerializationProvider.cs
- TiffBitmapDecoder.cs
- ObjectToIdCache.cs
- PriorityBindingExpression.cs
- HierarchicalDataSourceControl.cs
- Tag.cs
- XmlSchemaIdentityConstraint.cs
- LocatorGroup.cs
- DetailsViewModeEventArgs.cs
- RecordManager.cs