Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CaretElement.cs
- returneventsaver.cs
- Axis.cs
- ListSourceHelper.cs
- XmlQueryStaticData.cs
- DataPagerField.cs
- DataGridItem.cs
- EditorAttributeInfo.cs
- CoreSwitches.cs
- ChtmlPageAdapter.cs
- WebRequestModuleElement.cs
- EncodingTable.cs
- EntityRecordInfo.cs
- ColorTransform.cs
- SqlBulkCopyColumnMappingCollection.cs
- ProgressChangedEventArgs.cs
- TableRowGroup.cs
- CryptoKeySecurity.cs
- TabControlCancelEvent.cs
- safemediahandle.cs
- ActivityExecutorSurrogate.cs
- DbConnectionPoolGroupProviderInfo.cs
- CompositeDataBoundControl.cs
- ElapsedEventArgs.cs
- XmlObjectSerializerWriteContextComplex.cs
- GroupItemAutomationPeer.cs
- HttpDigestClientElement.cs
- CustomErrorCollection.cs
- UndoUnit.cs
- DiscoveryClient.cs
- ProjectedWrapper.cs
- SqlCommandSet.cs
- DataGridViewRow.cs
- BamlBinaryReader.cs
- DataServices.cs
- PatternMatcher.cs
- COM2ColorConverter.cs
- SqlDataSourceDesigner.cs
- CompositeScriptReference.cs
- XmlDataImplementation.cs
- BufferManager.cs
- IdentityReference.cs
- GridView.cs
- ActivationWorker.cs
- ContractsBCL.cs
- Rotation3DKeyFrameCollection.cs
- RemotingConfiguration.cs
- DBDataPermissionAttribute.cs
- UriSchemeKeyedCollection.cs
- Rotation3DAnimation.cs
- DataBindingExpressionBuilder.cs
- PageRequestManager.cs
- CanonicalFormWriter.cs
- ShapeTypeface.cs
- Section.cs
- TextEditorTyping.cs
- _NegoStream.cs
- CategoryEditor.cs
- SqlDuplicator.cs
- BinHexDecoder.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- InvalidOperationException.cs
- UriTemplateDispatchFormatter.cs
- StreamMarshaler.cs
- TableParagraph.cs
- LocalIdKeyIdentifierClause.cs
- NetworkStream.cs
- MenuStrip.cs
- BlockCollection.cs
- RawKeyboardInputReport.cs
- SubstitutionList.cs
- SoapSchemaImporter.cs
- TripleDESCryptoServiceProvider.cs
- CryptoHelper.cs
- Compress.cs
- TextModifier.cs
- ProcessDesigner.cs
- LogicalTreeHelper.cs
- RotateTransform.cs
- TreeNodeEventArgs.cs
- SqlUnionizer.cs
- HttpConfigurationContext.cs
- ConnectionStringsExpressionEditor.cs
- Module.cs
- HtmlTernaryTree.cs
- _AutoWebProxyScriptEngine.cs
- ExpressionParser.cs
- Point3DAnimationUsingKeyFrames.cs
- arabicshape.cs
- Model3D.cs
- XmlSchemaComplexContentExtension.cs
- WebCategoryAttribute.cs
- ForeignKeyConstraint.cs
- Cast.cs
- _NegotiateClient.cs
- DataColumnPropertyDescriptor.cs
- TripleDES.cs
- OutputCacheSettingsSection.cs
- ColumnMap.cs
- CompModHelpers.cs