Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / Utils / InternalBase.cs / 1305376 / InternalBase.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Text; namespace System.Data.Common.Utils { // A basic class from which all classes derive so that ToString can be // more controlled internal abstract class InternalBase { // effects: Modify builder to contain a compact string representation // of this internal abstract void ToCompactString(StringBuilder builder); // effects: Modify builder to contain a verbose string representation // of this internal virtual void ToFullString(StringBuilder builder) { ToCompactString(builder); } public override string ToString() { StringBuilder builder = new StringBuilder(); ToCompactString(builder); return builder.ToString(); } internal virtual string ToFullString() { StringBuilder builder = new StringBuilder(); ToFullString(builder); return builder.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Text; namespace System.Data.Common.Utils { // A basic class from which all classes derive so that ToString can be // more controlled internal abstract class InternalBase { // effects: Modify builder to contain a compact string representation // of this internal abstract void ToCompactString(StringBuilder builder); // effects: Modify builder to contain a verbose string representation // of this internal virtual void ToFullString(StringBuilder builder) { ToCompactString(builder); } public override string ToString() { StringBuilder builder = new StringBuilder(); ToCompactString(builder); return builder.ToString(); } internal virtual string ToFullString() { StringBuilder builder = new StringBuilder(); ToFullString(builder); return builder.ToString(); } } } // 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
- ListViewInsertedEventArgs.cs
- CroppedBitmap.cs
- ConnectionModeReader.cs
- CollectionViewGroup.cs
- ExpandoObject.cs
- CollectionsUtil.cs
- IPAddress.cs
- RefreshResponseInfo.cs
- MessagingDescriptionAttribute.cs
- OpCodes.cs
- ExecutedRoutedEventArgs.cs
- ExpandedWrapper.cs
- ControlHelper.cs
- SortDescriptionCollection.cs
- DataGridHeaderBorder.cs
- StandardBindingOptionalReliableSessionElement.cs
- XmlC14NWriter.cs
- Int32Storage.cs
- NestedContainer.cs
- HtmlContainerControl.cs
- DecimalConverter.cs
- Debugger.cs
- AutoResizedEvent.cs
- XmlTypeMapping.cs
- RegisteredDisposeScript.cs
- ImageListUtils.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- JournalEntryListConverter.cs
- Slider.cs
- ApplicationFileParser.cs
- InvokeFunc.cs
- AtlasWeb.Designer.cs
- OdbcInfoMessageEvent.cs
- XPathScanner.cs
- Util.cs
- SequenceDesigner.cs
- MatrixAnimationUsingKeyFrames.cs
- BoundsDrawingContextWalker.cs
- EntityDataSourceQueryBuilder.cs
- ObjectRef.cs
- RtfControlWordInfo.cs
- InlinedAggregationOperator.cs
- ModelFunction.cs
- Icon.cs
- EntityConnectionStringBuilder.cs
- TextTabProperties.cs
- XmlSchemaInferenceException.cs
- IgnoreDeviceFilterElementCollection.cs
- FixedDocumentSequencePaginator.cs
- DSACryptoServiceProvider.cs
- RIPEMD160.cs
- WebPageTraceListener.cs
- StyleSelector.cs
- LoadedEvent.cs
- ContainsSearchOperator.cs
- ProcessModelInfo.cs
- ReservationNotFoundException.cs
- WebScriptMetadataFormatter.cs
- WinFormsUtils.cs
- DynamicObjectAccessor.cs
- Point.cs
- PenLineCapValidation.cs
- InputEventArgs.cs
- HtmlElementCollection.cs
- FlowDocumentPaginator.cs
- WindowsIPAddress.cs
- CharacterString.cs
- Rect.cs
- XmlException.cs
- AdPostCacheSubstitution.cs
- PerformanceCounterLib.cs
- RijndaelManagedTransform.cs
- RevocationPoint.cs
- TextModifierScope.cs
- DirectoryRedirect.cs
- Label.cs
- InputMethodStateTypeInfo.cs
- MetadataArtifactLoaderCompositeResource.cs
- DataGridToolTip.cs
- WmlValidatorAdapter.cs
- InputScopeManager.cs
- PersonalizableTypeEntry.cs
- BinHexDecoder.cs
- CompiledIdentityConstraint.cs
- DragSelectionMessageFilter.cs
- ConstructorNeedsTagAttribute.cs
- FullTrustAssembly.cs
- MenuItemStyle.cs
- IFormattable.cs
- ActiveXSite.cs
- OrderedDictionary.cs
- codemethodreferenceexpression.cs
- FocusTracker.cs
- OutputCacheProfileCollection.cs
- EventRouteFactory.cs
- GridViewCommandEventArgs.cs
- X509ChainPolicy.cs
- PerformanceCounterManager.cs
- PrintEvent.cs
- RadioButtonStandardAdapter.cs