Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / TextElement.cs / 1 / 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
- BulletedListEventArgs.cs
- WebDescriptionAttribute.cs
- BaseDataBoundControl.cs
- InternalConfigSettingsFactory.cs
- SQLInt16.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- EventLogPermissionAttribute.cs
- TrackingSection.cs
- CallInfo.cs
- SystemIPGlobalStatistics.cs
- SecureUICommand.cs
- XmlJsonWriter.cs
- SBCSCodePageEncoding.cs
- CutCopyPasteHelper.cs
- DoubleConverter.cs
- SupportsEventValidationAttribute.cs
- RsaSecurityToken.cs
- StatusBarPanel.cs
- Propagator.ExtentPlaceholderCreator.cs
- CqlGenerator.cs
- MatrixTransform3D.cs
- SoapProcessingBehavior.cs
- CharacterBufferReference.cs
- securitycriticaldataformultiplegetandset.cs
- MetadataCache.cs
- NoClickablePointException.cs
- HttpListenerPrefixCollection.cs
- BaseProcessor.cs
- VectorConverter.cs
- StringValidatorAttribute.cs
- _AutoWebProxyScriptHelper.cs
- XmlDesigner.cs
- TitleStyle.cs
- Constants.cs
- WebPartEditorOkVerb.cs
- ListBase.cs
- ExtendedProperty.cs
- MenuStrip.cs
- ExpressionBuilderCollection.cs
- FormViewPageEventArgs.cs
- XsdDuration.cs
- ValidatingCollection.cs
- PowerModeChangedEventArgs.cs
- JoinSymbol.cs
- CanonicalFormWriter.cs
- DataException.cs
- EventManager.cs
- DispatcherObject.cs
- Int16Animation.cs
- CodeMethodMap.cs
- TimerEventSubscription.cs
- AnimationClock.cs
- Accessible.cs
- DesignerView.xaml.cs
- ControlPropertyNameConverter.cs
- remotingproxy.cs
- SqlInfoMessageEvent.cs
- StandardOleMarshalObject.cs
- XmlNamespaceManager.cs
- SupportingTokenProviderSpecification.cs
- SoapParser.cs
- HttpApplication.cs
- Variable.cs
- JsonStringDataContract.cs
- ISAPIApplicationHost.cs
- DataGridPagerStyle.cs
- SyntaxCheck.cs
- RoutedUICommand.cs
- RegexGroupCollection.cs
- GetWinFXPath.cs
- AvTrace.cs
- RelationshipEndCollection.cs
- SqlDataSourceView.cs
- DataGridViewDataErrorEventArgs.cs
- DataRelationCollection.cs
- EventProvider.cs
- SqlExpressionNullability.cs
- MethodImplAttribute.cs
- ResourcePool.cs
- NonSerializedAttribute.cs
- StringUtil.cs
- CallSite.cs
- WebPartEditorApplyVerb.cs
- QueuePathEditor.cs
- Token.cs
- WebException.cs
- InstanceCreationEditor.cs
- RadioButtonStandardAdapter.cs
- TextBoxAutomationPeer.cs
- ApplicationException.cs
- DataReceivedEventArgs.cs
- CellCreator.cs
- SqlException.cs
- GridViewDesigner.cs
- SaveWorkflowAsyncResult.cs
- SiteMapNodeCollection.cs
- MeasureData.cs
- PrintPreviewGraphics.cs
- ExpandableObjectConverter.cs
- HwndKeyboardInputProvider.cs