Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / TextElement.cs / 1 / TextElement.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Xml; namespace System.Data.EntityModel.SchemaObjectModel { ////// Summary description for Documentation. /// internal sealed class TextElement : SchemaElement { #region Instance Fields private string _value = null; #endregion #region Public Methods ////// /// /// public TextElement(SchemaElement parentElement) : base(parentElement) { } #endregion #region Public Properties ////// /// public string Value { get { return _value; } private set { _value = value; } } #endregion #region Protected Properties protected override bool HandleText(XmlReader reader) { TextElementTextHandler(reader); return true; } #endregion #region Private Methods ////// /// /// private void TextElementTextHandler(XmlReader reader) { string text = reader.Value; if ( string.IsNullOrEmpty(text) ) return; if ( string.IsNullOrEmpty(Value) ) Value = text; else Value += text; } #endregion } } // 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.Collections.Generic; using System.Text; using System.Xml; namespace System.Data.EntityModel.SchemaObjectModel { ////// Summary description for Documentation. /// internal sealed class TextElement : SchemaElement { #region Instance Fields private string _value = null; #endregion #region Public Methods ////// /// /// public TextElement(SchemaElement parentElement) : base(parentElement) { } #endregion #region Public Properties ////// /// public string Value { get { return _value; } private set { _value = value; } } #endregion #region Protected Properties protected override bool HandleText(XmlReader reader) { TextElementTextHandler(reader); return true; } #endregion #region Private Methods ////// /// /// private void TextElementTextHandler(XmlReader reader) { string text = reader.Value; if ( string.IsNullOrEmpty(text) ) return; if ( string.IsNullOrEmpty(Value) ) Value = text; else Value += text; } #endregion } } // 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
- SqlDependencyUtils.cs
- MenuRendererStandards.cs
- PocoPropertyAccessorStrategy.cs
- StrongNameHelpers.cs
- Style.cs
- DataKey.cs
- SafeSecurityHandles.cs
- ApplicationGesture.cs
- ProfileProvider.cs
- InternalConfigConfigurationFactory.cs
- DesignerValidationSummaryAdapter.cs
- Semaphore.cs
- ObjectQuery.cs
- DataGridViewComboBoxColumn.cs
- DataGridPagerStyle.cs
- SqlDeflator.cs
- SubclassTypeValidator.cs
- SiteMapDataSourceView.cs
- CatalogZoneBase.cs
- OleDbError.cs
- MulticastOption.cs
- RuntimeResourceSet.cs
- StylusEditingBehavior.cs
- CustomSignedXml.cs
- EntityDataSourceChangedEventArgs.cs
- XPathBinder.cs
- DataGridColumnDropSeparator.cs
- MimeTextImporter.cs
- ColorKeyFrameCollection.cs
- OrderByLifter.cs
- sqlstateclientmanager.cs
- SqlParameterizer.cs
- AssemblyCache.cs
- ToolStripArrowRenderEventArgs.cs
- SubstitutionDesigner.cs
- ClientSettingsProvider.cs
- PipelineModuleStepContainer.cs
- EntityContainerEntitySet.cs
- DefaultAuthorizationContext.cs
- TableItemStyle.cs
- ConfigXmlAttribute.cs
- PopupRoot.cs
- TypeDescriptionProviderAttribute.cs
- SHA1Managed.cs
- SettingsBindableAttribute.cs
- TypeUnloadedException.cs
- MulticastIPAddressInformationCollection.cs
- SqlCacheDependencySection.cs
- SerialErrors.cs
- StorageEndPropertyMapping.cs
- TypeCodeDomSerializer.cs
- CodeGenerator.cs
- WebBrowserNavigatedEventHandler.cs
- SqlErrorCollection.cs
- AsyncPostBackErrorEventArgs.cs
- ConfigurationFileMap.cs
- GroupStyle.cs
- __Error.cs
- InternalRelationshipCollection.cs
- LayoutManager.cs
- ConnectionsZone.cs
- QilSortKey.cs
- EntityClassGenerator.cs
- XsltLibrary.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- _ShellExpression.cs
- GeneralTransform3DGroup.cs
- FontNamesConverter.cs
- SqlComparer.cs
- GeometryModel3D.cs
- SQlBooleanStorage.cs
- WebConfigurationFileMap.cs
- Number.cs
- _ProxyChain.cs
- ForwardPositionQuery.cs
- JsonWriterDelegator.cs
- HttpCapabilitiesEvaluator.cs
- BitmapEffectDrawingContextState.cs
- RecordManager.cs
- OleDbErrorCollection.cs
- InlineObject.cs
- StorageEndPropertyMapping.cs
- Object.cs
- DbConnectionPoolGroup.cs
- NumericExpr.cs
- CollectionEditorDialog.cs
- FixedTextSelectionProcessor.cs
- Point3DCollectionValueSerializer.cs
- FontNamesConverter.cs
- Style.cs
- PackageStore.cs
- FileDialogPermission.cs
- RemoteWebConfigurationHostServer.cs
- HandleRef.cs
- Restrictions.cs
- DSACryptoServiceProvider.cs
- WindowHelperService.cs
- ComNativeDescriptor.cs
- TemplateNameScope.cs
- MatrixTransform3D.cs