Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / TextElement.cs / 1305376 / 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
- CompilerScope.Storage.cs
- HttpApplicationFactory.cs
- Baml2006KeyRecord.cs
- Rijndael.cs
- DataReaderContainer.cs
- MetaModel.cs
- SoundPlayer.cs
- SizeValueSerializer.cs
- login.cs
- JpegBitmapEncoder.cs
- EnvelopedPkcs7.cs
- SplitterCancelEvent.cs
- ReferenceService.cs
- SettingsPropertyValueCollection.cs
- SQLStringStorage.cs
- DesignerDataSourceView.cs
- RootNamespaceAttribute.cs
- ITextView.cs
- TypeContext.cs
- WebPartZone.cs
- StreamBodyWriter.cs
- HtmlWindowCollection.cs
- XmlCDATASection.cs
- EntityConnection.cs
- ConsoleKeyInfo.cs
- MatrixTransform3D.cs
- DocComment.cs
- Point4DConverter.cs
- EventRecord.cs
- ServiceDescriptionImporter.cs
- UnsupportedPolicyOptionsException.cs
- SecurityRequiresReviewAttribute.cs
- Brushes.cs
- WindowsListViewItemCheckBox.cs
- ListBoxAutomationPeer.cs
- Relationship.cs
- SymbolEqualComparer.cs
- RoutingUtilities.cs
- SqlEnums.cs
- UriTemplateDispatchFormatter.cs
- HttpDebugHandler.cs
- Int64AnimationUsingKeyFrames.cs
- SignedPkcs7.cs
- SessionEndingEventArgs.cs
- BasicExpandProvider.cs
- VideoDrawing.cs
- TripleDESCryptoServiceProvider.cs
- TextRunTypographyProperties.cs
- PeerPresenceInfo.cs
- AspNetRouteServiceHttpHandler.cs
- ObjectParameterCollection.cs
- brushes.cs
- GridLength.cs
- ReaderWriterLock.cs
- VirtualizingPanel.cs
- XhtmlMobileTextWriter.cs
- ReadContentAsBinaryHelper.cs
- MetaModel.cs
- PartialClassGenerationTask.cs
- IsolatedStorageFile.cs
- XhtmlBasicTextBoxAdapter.cs
- ObjectDataSourceFilteringEventArgs.cs
- externdll.cs
- ErrorTableItemStyle.cs
- MouseGesture.cs
- NullToBooleanConverter.cs
- AccessorTable.cs
- SoapFaultCodes.cs
- ImageListUtils.cs
- ModuleConfigurationInfo.cs
- DefaultPropertyAttribute.cs
- TriggerCollection.cs
- _ListenerAsyncResult.cs
- HierarchicalDataBoundControlAdapter.cs
- GetPageNumberCompletedEventArgs.cs
- XmlSchemaExternal.cs
- BoundsDrawingContextWalker.cs
- DetailsViewAutoFormat.cs
- HttpHeaderCollection.cs
- ScrollData.cs
- Number.cs
- Missing.cs
- Literal.cs
- XmlReaderSettings.cs
- WSHttpBindingElement.cs
- Duration.cs
- ChtmlCommandAdapter.cs
- safelink.cs
- BuildResult.cs
- autovalidator.cs
- TimeoutConverter.cs
- Int64.cs
- ObjectDataSourceMethodEventArgs.cs
- CheckBoxStandardAdapter.cs
- BamlResourceContent.cs
- FormatSettings.cs
- SQLInt32.cs
- XmlSchemaInfo.cs
- ManipulationDevice.cs
- CombinedHttpChannel.cs