Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- RemotingConfiguration.cs
- ColumnHeaderCollectionEditor.cs
- Control.cs
- ArrayConverter.cs
- ContextStaticAttribute.cs
- SqlTypesSchemaImporter.cs
- PageAdapter.cs
- ConfigurationManagerInternal.cs
- WebUtil.cs
- CodeGroup.cs
- DtrList.cs
- EventlogProvider.cs
- DataListCommandEventArgs.cs
- BamlStream.cs
- TextCompositionEventArgs.cs
- FtpWebResponse.cs
- PageContent.cs
- AxHostDesigner.cs
- StorageRoot.cs
- Duration.cs
- Trace.cs
- OdbcParameterCollection.cs
- CodeSubDirectoriesCollection.cs
- BufferedGraphics.cs
- updateconfighost.cs
- Workspace.cs
- GraphicsContext.cs
- GraphicsContainer.cs
- WindowCollection.cs
- addressfiltermode.cs
- BinaryFormatterWriter.cs
- ContentOperations.cs
- ClientEventManager.cs
- VoiceInfo.cs
- QilInvokeLateBound.cs
- InvalidDataContractException.cs
- UnsafeNativeMethods.cs
- ReachDocumentReferenceSerializerAsync.cs
- OpenTypeLayout.cs
- FlowDocument.cs
- UserNamePasswordValidator.cs
- NoResizeSelectionBorderGlyph.cs
- StackSpiller.Temps.cs
- LockCookie.cs
- MethodExpr.cs
- FlowNode.cs
- ITreeGenerator.cs
- Expression.cs
- ThreadExceptionDialog.cs
- XamlClipboardData.cs
- ComponentManagerBroker.cs
- ModuleBuilderData.cs
- ExecutionTracker.cs
- WsatStrings.cs
- ComponentCollection.cs
- EntityDataSourceContainerNameItem.cs
- LinkArea.cs
- InternalTypeHelper.cs
- ItemsControlAutomationPeer.cs
- ProviderUtil.cs
- DetailsViewDeleteEventArgs.cs
- HMACSHA384.cs
- RightNameExpirationInfoPair.cs
- CqlLexer.cs
- X509CertificateClaimSet.cs
- SchemaMapping.cs
- StandardMenuStripVerb.cs
- PowerModeChangedEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- SparseMemoryStream.cs
- TransformationRules.cs
- TrackingProfileSerializer.cs
- ListViewItem.cs
- EraserBehavior.cs
- DockProviderWrapper.cs
- Parameter.cs
- CaseCqlBlock.cs
- SchemaImporterExtensionsSection.cs
- AvTrace.cs
- brushes.cs
- ConfigXmlElement.cs
- DropShadowEffect.cs
- IPGlobalProperties.cs
- EntityDataSourceView.cs
- FindRequestContext.cs
- mansign.cs
- RegistrationServices.cs
- GlyphInfoList.cs
- DocumentXmlWriter.cs
- Converter.cs
- PropertyTabAttribute.cs
- QilList.cs
- WebBrowserHelper.cs
- RankException.cs
- WebPartActionVerb.cs
- ToolStripPanelCell.cs
- FontSource.cs
- OrderedDictionaryStateHelper.cs
- SymmetricAlgorithm.cs
- KeyProperty.cs