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
- FilterQuery.cs
- MultipleViewProviderWrapper.cs
- ComboBoxAutomationPeer.cs
- OleDbTransaction.cs
- RelationshipDetailsRow.cs
- Brush.cs
- TextRangeProviderWrapper.cs
- QilFactory.cs
- PipeStream.cs
- DataBindingCollection.cs
- MD5.cs
- DataGridViewEditingControlShowingEventArgs.cs
- CacheHelper.cs
- SpeakCompletedEventArgs.cs
- ActivityExecutionContext.cs
- MethodImplAttribute.cs
- SQLMembershipProvider.cs
- ImageIndexConverter.cs
- HtmlInputFile.cs
- UICuesEvent.cs
- ColumnPropertiesGroup.cs
- XmlNodeList.cs
- NextPreviousPagerField.cs
- WeakEventManager.cs
- TdsParser.cs
- DataObject.cs
- SymbolMethod.cs
- Set.cs
- CodeExpressionCollection.cs
- SortableBindingList.cs
- SynchronizedDispatch.cs
- CategoryEditor.cs
- sortedlist.cs
- ProcessHostConfigUtils.cs
- IssuanceLicense.cs
- InputLanguage.cs
- XmlStringTable.cs
- TreeViewImageKeyConverter.cs
- XmlWrappingReader.cs
- ThemeDirectoryCompiler.cs
- HttpProxyCredentialType.cs
- PrivilegeNotHeldException.cs
- _DomainName.cs
- RowToParametersTransformer.cs
- WarningException.cs
- EditorZoneBase.cs
- ControlSerializer.cs
- ReversePositionQuery.cs
- TextServicesDisplayAttribute.cs
- EventLog.cs
- TileBrush.cs
- NameNode.cs
- ObfuscateAssemblyAttribute.cs
- SqlWorkflowInstanceStore.cs
- HttpApplicationFactory.cs
- HelpFileFileNameEditor.cs
- WebPartManagerInternals.cs
- ContentPropertyAttribute.cs
- StaticTextPointer.cs
- SamlAuthorizationDecisionClaimResource.cs
- DockPatternIdentifiers.cs
- PowerStatus.cs
- Msec.cs
- IPHostEntry.cs
- CachedPathData.cs
- DefaultMemberAttribute.cs
- connectionpool.cs
- CodeComment.cs
- PropertyGridEditorPart.cs
- MembershipPasswordException.cs
- SystemIPv6InterfaceProperties.cs
- Vector3DAnimation.cs
- Label.cs
- InfoCardX509Validator.cs
- LookupBindingPropertiesAttribute.cs
- X509ChainPolicy.cs
- AsyncPostBackTrigger.cs
- StrokeSerializer.cs
- GraphicsContext.cs
- SQLResource.cs
- XmlNodeChangedEventManager.cs
- FlowPosition.cs
- Vector3dCollection.cs
- RuleSettings.cs
- TextSegment.cs
- CacheAxisQuery.cs
- UshortList2.cs
- FixedSOMTextRun.cs
- M3DUtil.cs
- Membership.cs
- RegexCharClass.cs
- ProfileManager.cs
- ToolStripLocationCancelEventArgs.cs
- BinaryConverter.cs
- OptimisticConcurrencyException.cs
- _ContextAwareResult.cs
- SHA256CryptoServiceProvider.cs
- SQLRoleProvider.cs
- DrawingContextDrawingContextWalker.cs
- DeviceContext2.cs