Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- NoneExcludedImageIndexConverter.cs
- NamespaceDisplay.xaml.cs
- AgileSafeNativeMemoryHandle.cs
- Comparer.cs
- PageCanvasSize.cs
- WindowsTitleBar.cs
- MemberPath.cs
- LicenseProviderAttribute.cs
- SendMailErrorEventArgs.cs
- XmlRawWriterWrapper.cs
- SchemaTableOptionalColumn.cs
- hwndwrapper.cs
- Mappings.cs
- Dictionary.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- PersonalizableTypeEntry.cs
- ResourceDescriptionAttribute.cs
- PrintPreviewGraphics.cs
- Point4D.cs
- TextMessageEncoder.cs
- QuaternionRotation3D.cs
- WebServiceData.cs
- PersistenceTypeAttribute.cs
- CapiHashAlgorithm.cs
- WindowsFormsHostPropertyMap.cs
- BrowserInteropHelper.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- OutOfMemoryException.cs
- Int16.cs
- DataSourceSelectArguments.cs
- ImageBrush.cs
- GlyphRun.cs
- StateItem.cs
- sqlcontext.cs
- EventManager.cs
- PermissionListSet.cs
- AuthStoreRoleProvider.cs
- DataGridAutoFormatDialog.cs
- QilLiteral.cs
- Cursors.cs
- CommonDialog.cs
- EditorZoneBase.cs
- BitmapEditor.cs
- ListViewInsertEventArgs.cs
- BulletDecorator.cs
- SharedStatics.cs
- RawAppCommandInputReport.cs
- SqlParameterizer.cs
- InputReportEventArgs.cs
- HyperLinkStyle.cs
- WebPartsPersonalizationAuthorization.cs
- WinFormsSpinner.cs
- Input.cs
- MimeTypePropertyAttribute.cs
- ImageCodecInfo.cs
- ConnectionsZoneAutoFormat.cs
- AssertUtility.cs
- KeyboardNavigation.cs
- XamlFigureLengthSerializer.cs
- TagNameToTypeMapper.cs
- PaintEvent.cs
- LabelLiteral.cs
- WindowsButton.cs
- PersonalizationEntry.cs
- XmlDeclaration.cs
- UpDownBaseDesigner.cs
- CompositeActivityCodeGenerator.cs
- StorageMappingItemCollection.cs
- ToolboxItem.cs
- ReflectionUtil.cs
- JournalNavigationScope.cs
- DataFormat.cs
- DataControlImageButton.cs
- InvalidComObjectException.cs
- DeclarativeConditionsCollection.cs
- SmtpFailedRecipientException.cs
- AxisAngleRotation3D.cs
- ResolvedKeyFrameEntry.cs
- TCPListener.cs
- XmlSchemaInclude.cs
- MatchSingleFxEngineOpcode.cs
- WindowsFormsHostPropertyMap.cs
- MouseActionValueSerializer.cs
- OperatingSystem.cs
- RuntimeConfigLKG.cs
- ToolStripRenderEventArgs.cs
- ChannelTerminatedException.cs
- InputBindingCollection.cs
- DataServiceClientException.cs
- ActivityCollectionMarkupSerializer.cs
- UidManager.cs
- SiteMapNodeItemEventArgs.cs
- UIInitializationException.cs
- XamlClipboardData.cs
- HitTestWithPointDrawingContextWalker.cs
- ProfileGroupSettingsCollection.cs
- BooleanExpr.cs
- CategoryAttribute.cs
- RunClient.cs
- InvalidCastException.cs