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
- DataShape.cs
- EntityRecordInfo.cs
- GeneralTransform2DTo3DTo2D.cs
- KeyEventArgs.cs
- TileModeValidation.cs
- HttpCacheVary.cs
- CapiSafeHandles.cs
- SafeRightsManagementSessionHandle.cs
- DataBinder.cs
- SvcMapFileLoader.cs
- MimeReflector.cs
- ToolStripContentPanel.cs
- CodeMemberField.cs
- TypeSystemHelpers.cs
- GeneralTransform.cs
- NonBatchDirectoryCompiler.cs
- DataKey.cs
- RemoteWebConfigurationHost.cs
- SQLMoney.cs
- SafeNativeMethods.cs
- EntityDataSourceChangingEventArgs.cs
- Variable.cs
- CodeDomConfigurationHandler.cs
- RemotingSurrogateSelector.cs
- EntityDataSourceWrapperCollection.cs
- XmlILModule.cs
- DataObjectPastingEventArgs.cs
- shaperfactory.cs
- ActivityInstance.cs
- StreamSecurityUpgradeAcceptorBase.cs
- NestPullup.cs
- TextElement.cs
- XmlWriter.cs
- OleDbRowUpdatedEvent.cs
- DependencyPropertyAttribute.cs
- ReachBasicContext.cs
- ExpressionBuilder.cs
- ToolStripItem.cs
- ZipPackagePart.cs
- WmpBitmapEncoder.cs
- XmlCollation.cs
- IgnoreFlushAndCloseStream.cs
- ReturnType.cs
- JsonClassDataContract.cs
- RegexStringValidator.cs
- CultureMapper.cs
- CollectionBuilder.cs
- FixedSOMTableRow.cs
- DbProviderFactoriesConfigurationHandler.cs
- RegexCaptureCollection.cs
- DataControlField.cs
- Normalization.cs
- DoubleAnimationBase.cs
- Overlapped.cs
- ColorMap.cs
- Type.cs
- DrawingImage.cs
- XmlDataImplementation.cs
- RequestQueue.cs
- MailDefinition.cs
- Relationship.cs
- StylusPointPropertyInfo.cs
- OdbcInfoMessageEvent.cs
- VisualStyleElement.cs
- StyleHelper.cs
- MsmqIntegrationBinding.cs
- coordinatorfactory.cs
- StreamGeometry.cs
- ScriptControlManager.cs
- Verify.cs
- GeometryModel3D.cs
- CancellationTokenRegistration.cs
- UITypeEditor.cs
- Collection.cs
- LocalServiceSecuritySettings.cs
- SafeViewOfFileHandle.cs
- SchemaImporterExtensionsSection.cs
- GifBitmapEncoder.cs
- DllNotFoundException.cs
- MissingMemberException.cs
- CssClassPropertyAttribute.cs
- BitSet.cs
- DescendantBaseQuery.cs
- EntityCommandExecutionException.cs
- NetCodeGroup.cs
- DbConnectionStringCommon.cs
- DataBinder.cs
- DataReaderContainer.cs
- NCryptSafeHandles.cs
- EnumConverter.cs
- QueryOpcode.cs
- HostUtils.cs
- AssemblyInfo.cs
- SqlAliaser.cs
- ServiceDurableInstanceContextProvider.cs
- ConfigXmlElement.cs
- ThreadSafeList.cs
- NotifyInputEventArgs.cs
- OperatingSystem.cs
- CharacterBuffer.cs