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
- ConfigurationSectionHelper.cs
- WrappedIUnknown.cs
- SqlCacheDependencyDatabase.cs
- TabItemAutomationPeer.cs
- FactoryGenerator.cs
- FeatureManager.cs
- CurrencyWrapper.cs
- PersistChildrenAttribute.cs
- HMACSHA384.cs
- FontSizeConverter.cs
- DataGridViewControlCollection.cs
- XamlPointCollectionSerializer.cs
- SimpleRecyclingCache.cs
- ActiveDocumentEvent.cs
- CriticalFinalizerObject.cs
- SystemThemeKey.cs
- SerializationTrace.cs
- QueryCacheKey.cs
- WindowCollection.cs
- OperatingSystem.cs
- PlatformCulture.cs
- Visual.cs
- InvokeProviderWrapper.cs
- ThreadAbortException.cs
- Rectangle.cs
- HtmlElement.cs
- IdnMapping.cs
- XmlBindingWorker.cs
- ContextProperty.cs
- PreloadedPackages.cs
- DbMetaDataColumnNames.cs
- DataGridCell.cs
- _Events.cs
- XmlSchemaSubstitutionGroup.cs
- GeometryConverter.cs
- List.cs
- ResolveCriteria.cs
- DescendantOverDescendantQuery.cs
- DetailsViewModeEventArgs.cs
- Blend.cs
- StorageEntityContainerMapping.cs
- XMLUtil.cs
- FileLogRecordHeader.cs
- SafeFindHandle.cs
- SqlNamer.cs
- OdbcStatementHandle.cs
- XmlSchemaSet.cs
- Ref.cs
- DoubleAnimationBase.cs
- BlurBitmapEffect.cs
- HwndHostAutomationPeer.cs
- ReliabilityContractAttribute.cs
- DataGridViewCellConverter.cs
- SeverityFilter.cs
- Mouse.cs
- TreeNodeEventArgs.cs
- NavigateEvent.cs
- GiveFeedbackEvent.cs
- WebPartEditorOkVerb.cs
- ValueConversionAttribute.cs
- DrawingContextWalker.cs
- RotateTransform3D.cs
- Attributes.cs
- SafeMarshalContext.cs
- ContainerParagraph.cs
- RequestResizeEvent.cs
- CryptoKeySecurity.cs
- HtmlSelect.cs
- MbpInfo.cs
- XmlAutoDetectWriter.cs
- OpenTypeLayout.cs
- TiffBitmapEncoder.cs
- StylusButtonCollection.cs
- TTSVoice.cs
- RouteParameter.cs
- Transactions.cs
- StylusPlugin.cs
- _ScatterGatherBuffers.cs
- Base64WriteStateInfo.cs
- XmlDesignerDataSourceView.cs
- TemplateKeyConverter.cs
- Roles.cs
- Substitution.cs
- IgnorePropertiesAttribute.cs
- Int16KeyFrameCollection.cs
- InputMethodStateTypeInfo.cs
- ResourcePool.cs
- BitmapMetadata.cs
- Metadata.cs
- Rect3DValueSerializer.cs
- CodeTypeParameterCollection.cs
- RelationHandler.cs
- ExceptQueryOperator.cs
- HtmlUtf8RawTextWriter.cs
- DeclaredTypeValidator.cs
- DateTime.cs
- COM2AboutBoxPropertyDescriptor.cs
- EventLog.cs
- BaseTemplateParser.cs
- AssemblyHash.cs