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
- SettingsBase.cs
- TransformerInfo.cs
- FastEncoderWindow.cs
- SymLanguageType.cs
- BamlRecordReader.cs
- CatalogZone.cs
- SettingsPropertyIsReadOnlyException.cs
- SoapFormatter.cs
- Condition.cs
- PageAdapter.cs
- ConsoleEntryPoint.cs
- GridViewUpdatedEventArgs.cs
- QueryCacheManager.cs
- RegexReplacement.cs
- ActivityDesignerResources.cs
- ProcessMessagesAsyncResult.cs
- CompositeScriptReferenceEventArgs.cs
- IntegrationExceptionEventArgs.cs
- WindowCollection.cs
- SqlConnectionPoolProviderInfo.cs
- ContainerCodeDomSerializer.cs
- ArglessEventHandlerProxy.cs
- MenuTracker.cs
- PersistChildrenAttribute.cs
- HtmlInputCheckBox.cs
- TypeUsage.cs
- TaskHelper.cs
- DashStyles.cs
- FilterEventArgs.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- Translator.cs
- TextSelectionHighlightLayer.cs
- SqlDataSourceCommandEventArgs.cs
- SystemResourceKey.cs
- ErrorStyle.cs
- BinaryObjectReader.cs
- PathFigureCollection.cs
- HttpContext.cs
- DiagnosticsConfigurationHandler.cs
- ConnectorMovedEventArgs.cs
- DistributedTransactionPermission.cs
- Schema.cs
- ContractAdapter.cs
- TagMapCollection.cs
- SerializationInfoEnumerator.cs
- WindowsFormsHelpers.cs
- BufferedStream2.cs
- DiscoveryMessageProperty.cs
- TextDpi.cs
- CustomTypeDescriptor.cs
- TextOnlyOutput.cs
- SwitchLevelAttribute.cs
- SchemaTableOptionalColumn.cs
- COM2ColorConverter.cs
- PageCatalogPartDesigner.cs
- EnumType.cs
- EntityContainerRelationshipSetEnd.cs
- ApplicationSecurityInfo.cs
- StringExpressionSet.cs
- TraceHandler.cs
- XmlAnyElementAttribute.cs
- RelatedPropertyManager.cs
- PartialList.cs
- SafeProcessHandle.cs
- GroupPartitionExpr.cs
- DoubleAnimationBase.cs
- WebPartDisplayModeCollection.cs
- OdbcTransaction.cs
- FeatureSupport.cs
- BitmapMetadataEnumerator.cs
- IImplicitResourceProvider.cs
- ConfigurationValue.cs
- ExpressionConverter.cs
- MarkupCompilePass2.cs
- DataMemberConverter.cs
- XmlNodeReader.cs
- FontSizeConverter.cs
- Win32.cs
- ProjectionPruner.cs
- ListView.cs
- PageHandlerFactory.cs
- WinFormsSecurity.cs
- AssemblyResourceLoader.cs
- OutputWindow.cs
- Currency.cs
- MatrixTransform.cs
- _BasicClient.cs
- LocalizabilityAttribute.cs
- DebugInfoExpression.cs
- DragEventArgs.cs
- DesignerActionUI.cs
- SapiRecoInterop.cs
- DeflateStreamAsyncResult.cs
- Bidi.cs
- FontStretch.cs
- List.cs
- ColorConvertedBitmap.cs
- FlowNode.cs
- _FtpDataStream.cs
- EpmSourceTree.cs