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
- BamlLocalizableResource.cs
- PerformanceCounterCategory.cs
- UnSafeCharBuffer.cs
- sqlstateclientmanager.cs
- EdmToObjectNamespaceMap.cs
- OleDbCommand.cs
- PropertyMappingExceptionEventArgs.cs
- fixedPageContentExtractor.cs
- AtomServiceDocumentSerializer.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- GeneralTransform3DTo2DTo3D.cs
- PlacementWorkspace.cs
- PresentationTraceSources.cs
- DataSourceCollectionBase.cs
- DesignerObjectListAdapter.cs
- ImageClickEventArgs.cs
- MenuItemStyle.cs
- ConfigurationElementCollection.cs
- OleDbWrapper.cs
- StructuralObject.cs
- AnnotationStore.cs
- NonClientArea.cs
- PageBuildProvider.cs
- ObjectManager.cs
- PenThread.cs
- AssemblyBuilderData.cs
- TimeoutValidationAttribute.cs
- BackgroundWorker.cs
- Schedule.cs
- BamlResourceContent.cs
- ProcessStartInfo.cs
- HttpConfigurationSystem.cs
- TextEditor.cs
- InputGestureCollection.cs
- Switch.cs
- DataGridViewRowConverter.cs
- DataBinding.cs
- SqlCacheDependency.cs
- PopupEventArgs.cs
- SqlPersonalizationProvider.cs
- ContainsRowNumberChecker.cs
- StickyNoteAnnotations.cs
- WindowsRichEditRange.cs
- ConversionValidationRule.cs
- SqlServer2KCompatibilityAnnotation.cs
- CustomValidator.cs
- CodeLinePragma.cs
- Calendar.cs
- ExpressionLexer.cs
- ScriptingScriptResourceHandlerSection.cs
- ContentPlaceHolderDesigner.cs
- MemberRelationshipService.cs
- LassoHelper.cs
- SqlEnums.cs
- EnumValAlphaComparer.cs
- BinaryReader.cs
- Utils.cs
- MatrixTransform.cs
- LoginView.cs
- RewritingSimplifier.cs
- RSAOAEPKeyExchangeFormatter.cs
- NumberAction.cs
- XmlIlVisitor.cs
- InstanceDescriptor.cs
- WinCategoryAttribute.cs
- SingleAnimationBase.cs
- XmlAttributeCollection.cs
- TextProperties.cs
- PartManifestEntry.cs
- TypeInfo.cs
- TransformPattern.cs
- Screen.cs
- TreeNode.cs
- SQLResource.cs
- SmiGettersStream.cs
- XmlIlGenerator.cs
- ViewPort3D.cs
- OdbcRowUpdatingEvent.cs
- GrammarBuilderBase.cs
- OdbcEnvironment.cs
- Size3DConverter.cs
- RbTree.cs
- Pointer.cs
- PersonalizationStateInfoCollection.cs
- SafeEventLogReadHandle.cs
- TagMapInfo.cs
- CookielessHelper.cs
- CodeSubDirectoriesCollection.cs
- XmlReaderDelegator.cs
- Internal.cs
- SetterBase.cs
- serverconfig.cs
- ExpressionConverter.cs
- altserialization.cs
- DataGridViewCellConverter.cs
- UnsafeMethods.cs
- BatchParser.cs
- CacheChildrenQuery.cs
- ObjectIDGenerator.cs
- ControlAdapter.cs