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
- BStrWrapper.cs
- BindingMAnagerBase.cs
- DataException.cs
- SectionRecord.cs
- NetworkInformationPermission.cs
- InstancePersistenceCommandException.cs
- HttpListenerPrefixCollection.cs
- FontStyleConverter.cs
- RuleAttributes.cs
- MergePropertyDescriptor.cs
- PackWebRequest.cs
- BypassElement.cs
- XmlReaderDelegator.cs
- _ShellExpression.cs
- HorizontalAlignConverter.cs
- SafeWaitHandle.cs
- AuthenticateEventArgs.cs
- OdbcConnectionHandle.cs
- Overlapped.cs
- NestedContainer.cs
- FormCollection.cs
- TypeSystem.cs
- XpsTokenContext.cs
- ExtensionQuery.cs
- HtmlTableCell.cs
- Dynamic.cs
- SpellerHighlightLayer.cs
- AppDomainResourcePerfCounters.cs
- FixedSOMTextRun.cs
- SiblingIterators.cs
- OwnerDrawPropertyBag.cs
- DocumentViewerAutomationPeer.cs
- RSACryptoServiceProvider.cs
- SqlGatherProducedAliases.cs
- InputLangChangeEvent.cs
- WindowsBrush.cs
- GlyphsSerializer.cs
- ListParagraph.cs
- CodeAccessSecurityEngine.cs
- QuotedPairReader.cs
- TextAutomationPeer.cs
- HashHelpers.cs
- ReadOnlyObservableCollection.cs
- PaperSize.cs
- PagePropertiesChangingEventArgs.cs
- SystemIPInterfaceStatistics.cs
- ConstNode.cs
- RightsManagementEncryptionTransform.cs
- IntPtr.cs
- DataGridViewTopRowAccessibleObject.cs
- MiniAssembly.cs
- ObjectFullSpanRewriter.cs
- Block.cs
- EventWaitHandle.cs
- ActionFrame.cs
- Camera.cs
- InfoCardSymmetricCrypto.cs
- UntrustedRecipientException.cs
- WebRequestModuleElement.cs
- DataServiceContext.cs
- NotSupportedException.cs
- AliasedSlot.cs
- SqlConnectionFactory.cs
- SplineKeyFrames.cs
- DataProtection.cs
- BasicBrowserDialog.designer.cs
- VisualProxy.cs
- ColorContextHelper.cs
- DataGridItemCollection.cs
- PropertyDescriptorComparer.cs
- Queue.cs
- COM2PropertyBuilderUITypeEditor.cs
- WebPartMenuStyle.cs
- ExecutedRoutedEventArgs.cs
- OleDbDataReader.cs
- AuthenticationService.cs
- TrackingProvider.cs
- CoreChannel.cs
- OleDbStruct.cs
- METAHEADER.cs
- FusionWrap.cs
- ConfigurationLoader.cs
- ProbeMatchesMessage11.cs
- PrinterResolution.cs
- CheckBoxAutomationPeer.cs
- FlagsAttribute.cs
- ButtonPopupAdapter.cs
- CatalogPart.cs
- SystemResourceKey.cs
- figurelengthconverter.cs
- StubHelpers.cs
- XmlException.cs
- FilterElement.cs
- AttributedMetaModel.cs
- DBConcurrencyException.cs
- TypeUnloadedException.cs
- TextParagraph.cs
- NestedContainer.cs
- Psha1DerivedKeyGenerator.cs
- ObjectItemAttributeAssemblyLoader.cs