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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ComponentResourceKeyConverter.cs
- SecurityState.cs
- SqlNotificationRequest.cs
- SqlDataAdapter.cs
- StructuredCompositeActivityDesigner.cs
- SQLInt32.cs
- RemoteCryptoDecryptRequest.cs
- Vertex.cs
- _UncName.cs
- GrammarBuilder.cs
- PnrpPermission.cs
- SqlMultiplexer.cs
- ExpressionEditorAttribute.cs
- DataGridViewCellMouseEventArgs.cs
- HandleCollector.cs
- BamlTreeNode.cs
- BitmapSizeOptions.cs
- TaskSchedulerException.cs
- SelectionProviderWrapper.cs
- WebSysDisplayNameAttribute.cs
- Error.cs
- Soap12ProtocolReflector.cs
- ScriptingSectionGroup.cs
- CngKeyCreationParameters.cs
- TypographyProperties.cs
- ObjectParameterCollection.cs
- TrackBar.cs
- XmlSchemaElement.cs
- HelpInfo.cs
- DesignConnectionCollection.cs
- ToolBar.cs
- SqlDataReader.cs
- GradientStop.cs
- CustomErrorsSectionWrapper.cs
- EntityDesignerDataSourceView.cs
- ObjectComplexPropertyMapping.cs
- CommentAction.cs
- GeneralTransform3DTo2D.cs
- UidPropertyAttribute.cs
- MeasurementDCInfo.cs
- StrongNameUtility.cs
- CompilationSection.cs
- RadialGradientBrush.cs
- basecomparevalidator.cs
- SystemSounds.cs
- CopyOfAction.cs
- XmlDocumentViewSchema.cs
- BitmapPalettes.cs
- Hashtable.cs
- QueryExtender.cs
- QilPatternFactory.cs
- CodeVariableReferenceExpression.cs
- WindowsListViewItemStartMenu.cs
- IsolatedStorageFile.cs
- WindowCollection.cs
- ListManagerBindingsCollection.cs
- SetterBaseCollection.cs
- SecurityDocument.cs
- DependencyProperty.cs
- SectionRecord.cs
- IPipelineRuntime.cs
- Maps.cs
- DrawingContextWalker.cs
- ActiveXHost.cs
- LocalsItemDescription.cs
- PerspectiveCamera.cs
- precedingsibling.cs
- HostedAspNetEnvironment.cs
- Point4D.cs
- EventProviderWriter.cs
- CalloutQueueItem.cs
- CustomValidator.cs
- HtmlHistory.cs
- CompilationUtil.cs
- MetabaseSettings.cs
- QueryStringParameter.cs
- SmiConnection.cs
- SecurityPermission.cs
- RoutedEvent.cs
- IntellisenseTextBox.cs
- TextSchema.cs
- UIElement3DAutomationPeer.cs
- graph.cs
- FontNameConverter.cs
- util.cs
- TypeDependencyAttribute.cs
- EncryptedHeaderXml.cs
- RetrieveVirtualItemEventArgs.cs
- CodePageUtils.cs
- XmlDataSourceView.cs
- HttpPostedFileWrapper.cs
- CustomValidator.cs
- TextEditorCharacters.cs
- DecoderBestFitFallback.cs
- EntityModelSchemaGenerator.cs
- KeyToListMap.cs
- WindowsSpinner.cs
- AssemblyBuilder.cs
- Visual3DCollection.cs
- MemoryFailPoint.cs