Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UiaCoreApi.cs
- OpenTypeLayoutCache.cs
- DesignerCategoryAttribute.cs
- Int32Collection.cs
- CanonicalXml.cs
- TableRow.cs
- Publisher.cs
- Funcletizer.cs
- ACE.cs
- PageCodeDomTreeGenerator.cs
- Tuple.cs
- InstanceDataCollection.cs
- CharEntityEncoderFallback.cs
- NavigationCommands.cs
- Matrix3DValueSerializer.cs
- AnnotationDocumentPaginator.cs
- XmlSchemaExporter.cs
- COM2Properties.cs
- CroppedBitmap.cs
- RightsManagementInformation.cs
- HandlerBase.cs
- NumberFunctions.cs
- Padding.cs
- FixedSOMFixedBlock.cs
- XhtmlBasicLinkAdapter.cs
- COMException.cs
- ForwardPositionQuery.cs
- CryptoApi.cs
- SoapAttributes.cs
- ActiveDocumentEvent.cs
- DocumentPropertiesDialog.cs
- RadioButton.cs
- ShimAsPublicXamlType.cs
- DataGridViewCheckBoxCell.cs
- TextBoxAutoCompleteSourceConverter.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ValueChangedEventManager.cs
- DistinctQueryOperator.cs
- EntityTypeEmitter.cs
- ManipulationPivot.cs
- COM2TypeInfoProcessor.cs
- Transform.cs
- TypeValidationEventArgs.cs
- ReadContentAsBinaryHelper.cs
- SqlUserDefinedTypeAttribute.cs
- XmlSchemaDocumentation.cs
- ConfigPathUtility.cs
- EventPrivateKey.cs
- GridViewColumnHeaderAutomationPeer.cs
- TemplatedEditableDesignerRegion.cs
- SafeNativeMemoryHandle.cs
- PageTheme.cs
- MultiSelectRootGridEntry.cs
- WebPartConnectionsCancelEventArgs.cs
- PropertyConverter.cs
- sitestring.cs
- XamlTreeBuilder.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- XamlInt32CollectionSerializer.cs
- ByteStream.cs
- NamespaceInfo.cs
- WindowsFormsSynchronizationContext.cs
- LoginStatusDesigner.cs
- AssociationSet.cs
- ProviderConnectionPoint.cs
- AuthorizationRuleCollection.cs
- SemanticTag.cs
- MethodToken.cs
- MessageDecoder.cs
- DBConnectionString.cs
- ResXResourceWriter.cs
- CharacterShapingProperties.cs
- SqlWebEventProvider.cs
- HttpCapabilitiesEvaluator.cs
- XamlFigureLengthSerializer.cs
- XPathAxisIterator.cs
- TabletDeviceInfo.cs
- HitTestFilterBehavior.cs
- _NTAuthentication.cs
- _SslState.cs
- DataGridViewSortCompareEventArgs.cs
- CharacterHit.cs
- FormViewPagerRow.cs
- Int16Converter.cs
- VisualTreeHelper.cs
- AsyncContentLoadedEventArgs.cs
- CustomError.cs
- UrlUtility.cs
- CssTextWriter.cs
- ConfigurationCollectionAttribute.cs
- HostedElements.cs
- Literal.cs
- CommandManager.cs
- DrawingAttributesDefaultValueFactory.cs
- GeometryConverter.cs
- WebControl.cs
- Literal.cs
- PackagingUtilities.cs
- PopupControlService.cs
- NamespaceCollection.cs