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
- TemplateKeyConverter.cs
- Viewport3DVisual.cs
- EraserBehavior.cs
- DataGridColumnDropSeparator.cs
- LinkLabel.cs
- InputScopeConverter.cs
- QilStrConcatenator.cs
- DataGridViewRowsAddedEventArgs.cs
- StringAttributeCollection.cs
- X509SecurityToken.cs
- AppLevelCompilationSectionCache.cs
- TargetParameterCountException.cs
- ping.cs
- CanonicalFormWriter.cs
- WmlLabelAdapter.cs
- XhtmlBasicValidationSummaryAdapter.cs
- TextElementEnumerator.cs
- CFGGrammar.cs
- VolatileEnlistmentMultiplexing.cs
- OleDbRowUpdatedEvent.cs
- ToggleButtonAutomationPeer.cs
- LostFocusEventManager.cs
- VisualTarget.cs
- HMACSHA256.cs
- TransformerTypeCollection.cs
- LinkedDataMemberFieldEditor.cs
- SerializationFieldInfo.cs
- ExpressionBindings.cs
- LinqMaximalSubtreeNominator.cs
- XmlSchemaExternal.cs
- RNGCryptoServiceProvider.cs
- RemoteWebConfigurationHost.cs
- CreateUserErrorEventArgs.cs
- ResourceReader.cs
- DataGridViewColumnCollectionDialog.cs
- GatewayDefinition.cs
- ListViewCommandEventArgs.cs
- RangeBase.cs
- Transform3D.cs
- autovalidator.cs
- SchemaMapping.cs
- CopyOnWriteList.cs
- MetafileHeader.cs
- XmlSignatureManifest.cs
- Metafile.cs
- DrawItemEvent.cs
- FixedSOMTextRun.cs
- Accessible.cs
- RootBrowserWindow.cs
- SqlUnionizer.cs
- VerificationAttribute.cs
- CodeSnippetExpression.cs
- XdrBuilder.cs
- RoleService.cs
- DispatcherOperation.cs
- ModelTreeEnumerator.cs
- PeerInvitationResponse.cs
- TagNameToTypeMapper.cs
- LineServices.cs
- PositiveTimeSpanValidator.cs
- SchemaTableColumn.cs
- QilTypeChecker.cs
- ConfigXmlComment.cs
- KeyEvent.cs
- TreeViewImageIndexConverter.cs
- SimpleApplicationHost.cs
- ToolboxItemCollection.cs
- ImageAnimator.cs
- DataGridSortCommandEventArgs.cs
- FixedSOMSemanticBox.cs
- WebResponse.cs
- ColorTranslator.cs
- DateTimeStorage.cs
- FormsAuthenticationTicket.cs
- RelationshipEnd.cs
- ExpressionStringBuilder.cs
- RegionData.cs
- ContainerVisual.cs
- RepeatBehavior.cs
- SoapEnvelopeProcessingElement.cs
- PageAsyncTask.cs
- GregorianCalendarHelper.cs
- FaultContext.cs
- FormParameter.cs
- RequestDescription.cs
- SqlDataSourceCommandEventArgs.cs
- EnglishPluralizationService.cs
- WebBrowserHelper.cs
- ReferenceConverter.cs
- GregorianCalendar.cs
- UpDownBase.cs
- PassportAuthenticationModule.cs
- ReaderWriterLockWrapper.cs
- AnimationTimeline.cs
- XmlAtomicValue.cs
- EnumConverter.cs
- DtdParser.cs
- BulletedListEventArgs.cs
- InOutArgumentConverter.cs
- Base64Encoder.cs