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
- RichTextBox.cs
- OleDbParameterCollection.cs
- Calendar.cs
- LinqDataSourceUpdateEventArgs.cs
- ToolboxComponentsCreatedEventArgs.cs
- IOException.cs
- UIntPtr.cs
- Normalizer.cs
- IntegrationExceptionEventArgs.cs
- ExternalFile.cs
- BitmapPalettes.cs
- PartialTrustValidationBehavior.cs
- SpeechAudioFormatInfo.cs
- UnsafeNetInfoNativeMethods.cs
- IRCollection.cs
- DataGridViewCellValueEventArgs.cs
- DatagridviewDisplayedBandsData.cs
- StructureChangedEventArgs.cs
- RSAPKCS1SignatureDeformatter.cs
- PropertyFilterAttribute.cs
- IODescriptionAttribute.cs
- CompiledIdentityConstraint.cs
- PlainXmlWriter.cs
- TextParagraphProperties.cs
- SystemNetworkInterface.cs
- Image.cs
- GridViewAutomationPeer.cs
- SecurityUtils.cs
- MasterPageParser.cs
- FixedSOMImage.cs
- DataGridTableCollection.cs
- SqlWorkflowPersistenceService.cs
- QuaternionRotation3D.cs
- Matrix.cs
- ContentPlaceHolder.cs
- StringResourceManager.cs
- Listbox.cs
- DragAssistanceManager.cs
- PageAsyncTask.cs
- XsltArgumentList.cs
- RoleManagerSection.cs
- XamlPointCollectionSerializer.cs
- InkCanvasSelection.cs
- DocumentPageTextView.cs
- TextOnlyOutput.cs
- WorkflowElementDialog.cs
- FontNameConverter.cs
- ReadOnlyCollection.cs
- PanelStyle.cs
- SID.cs
- StatusBarPanelClickEvent.cs
- FrameworkContextData.cs
- SessionPageStateSection.cs
- CodeCastExpression.cs
- DataGridViewCellStyle.cs
- ObfuscateAssemblyAttribute.cs
- FileRecordSequence.cs
- WebException.cs
- EdmProviderManifest.cs
- LinearGradientBrush.cs
- EventBuilder.cs
- BuildProviderCollection.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- Bits.cs
- TypeGenericEnumerableViewSchema.cs
- DisplayInformation.cs
- TextParaClient.cs
- DataControlPagerLinkButton.cs
- DataChangedEventManager.cs
- SharedStatics.cs
- EntityContainerEmitter.cs
- RegisteredArrayDeclaration.cs
- RuleSettings.cs
- New.cs
- ControlDesigner.cs
- EntityCollectionChangedParams.cs
- Color.cs
- BamlRecordReader.cs
- TreeBuilderBamlTranslator.cs
- Bookmark.cs
- PerformanceCountersElement.cs
- Floater.cs
- XmlHierarchicalDataSourceView.cs
- SpeakCompletedEventArgs.cs
- SqlTriggerContext.cs
- HttpListenerElement.cs
- StsCommunicationException.cs
- CultureSpecificStringDictionary.cs
- TextBoxLine.cs
- GenericEnumerator.cs
- LiteralLink.cs
- XamlSerializer.cs
- MessageSmuggler.cs
- StateDesigner.TransitionInfo.cs
- PriorityItem.cs
- TextSyndicationContent.cs
- XPathQilFactory.cs
- AppDomainAttributes.cs
- Executor.cs
- ResourceExpressionBuilder.cs