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
- Camera.cs
- InputProcessorProfiles.cs
- ToolboxBitmapAttribute.cs
- NumericExpr.cs
- ChildTable.cs
- DllNotFoundException.cs
- SourceChangedEventArgs.cs
- ProtocolsConfigurationEntry.cs
- TextServicesLoader.cs
- MatrixTransform.cs
- TreeSet.cs
- SqlDependencyListener.cs
- PropertyInfo.cs
- MenuCommandService.cs
- LiteralControl.cs
- ScrollProperties.cs
- GPRECT.cs
- TypeDependencyAttribute.cs
- TypeUnloadedException.cs
- FormViewDeleteEventArgs.cs
- ToolStripContentPanel.cs
- ListItemConverter.cs
- DataShape.cs
- ZipIOLocalFileDataDescriptor.cs
- XsdDataContractImporter.cs
- XmlSchema.cs
- IdentityHolder.cs
- DependencyObjectProvider.cs
- TextElementAutomationPeer.cs
- EnumConverter.cs
- StateMachineSubscription.cs
- Listbox.cs
- MimeMapping.cs
- ToolZone.cs
- HttpCapabilitiesBase.cs
- ExportOptions.cs
- HtmlLabelAdapter.cs
- BufferModeSettings.cs
- ReaderOutput.cs
- ModuleConfigurationInfo.cs
- MSHTMLHost.cs
- VolatileEnlistmentState.cs
- ToolStripSplitStackLayout.cs
- ScrollableControlDesigner.cs
- CfgSemanticTag.cs
- DataSourceHelper.cs
- ErrorsHelper.cs
- IPGlobalProperties.cs
- SafeCryptoHandles.cs
- MenuBase.cs
- EventLog.cs
- VisualTreeUtils.cs
- QueryExpr.cs
- DeferredSelectedIndexReference.cs
- HTMLTextWriter.cs
- CompiledIdentityConstraint.cs
- SqlRemoveConstantOrderBy.cs
- SubstitutionList.cs
- RbTree.cs
- Border.cs
- MailDefinition.cs
- PackageRelationship.cs
- CapabilitiesUse.cs
- SqlUtils.cs
- Button.cs
- AssociationSet.cs
- NavigationProperty.cs
- _AutoWebProxyScriptWrapper.cs
- CreateUserErrorEventArgs.cs
- DelegatingTypeDescriptionProvider.cs
- diagnosticsswitches.cs
- HtmlTableCell.cs
- FileLevelControlBuilderAttribute.cs
- TransactedBatchContext.cs
- Receive.cs
- XmlSchemaGroupRef.cs
- TextEmbeddedObject.cs
- CompositeFontFamily.cs
- DataTableClearEvent.cs
- ListSortDescription.cs
- Transform3D.cs
- MsmqHostedTransportManager.cs
- PrintPageEvent.cs
- WebPartDeleteVerb.cs
- CacheMemory.cs
- AuthStoreRoleProvider.cs
- FixedSOMPageElement.cs
- SpotLight.cs
- ObjectListItemCollection.cs
- WebZone.cs
- CodeDomConfigurationHandler.cs
- XamlTreeBuilder.cs
- MessageSecurityException.cs
- DataGridTable.cs
- DataControlFieldCollection.cs
- XNodeNavigator.cs
- RegexNode.cs
- AssociationType.cs
- HtmlSelect.cs
- WebPartZoneCollection.cs