Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / TextElement.cs / 1305376 / 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
- TextElement.cs
- ClientReliableChannelBinder.cs
- ButtonChrome.cs
- TypeSource.cs
- XsdDateTime.cs
- ClipboardProcessor.cs
- DesignerVerbCollection.cs
- designeractionlistschangedeventargs.cs
- RenderingBiasValidation.cs
- _Win32.cs
- securitymgrsite.cs
- ActivityDesignerHighlighter.cs
- FilteredReadOnlyMetadataCollection.cs
- MethodBuilder.cs
- StorageTypeMapping.cs
- PenThreadPool.cs
- OdbcReferenceCollection.cs
- BinHexDecoder.cs
- DocumentGridContextMenu.cs
- ValueQuery.cs
- OracleParameterCollection.cs
- ZeroOpNode.cs
- DataTableExtensions.cs
- OutOfProcStateClientManager.cs
- thaishape.cs
- Metadata.cs
- UidManager.cs
- RepeatInfo.cs
- WebScriptServiceHost.cs
- DataServiceRequestArgs.cs
- RequestUriProcessor.cs
- MDIControlStrip.cs
- XamlValidatingReader.cs
- TextBoxBase.cs
- ShapeTypeface.cs
- TableCell.cs
- XmlElement.cs
- NavigatorOutput.cs
- OdbcRowUpdatingEvent.cs
- ConfigurationCollectionAttribute.cs
- RuleSettingsCollection.cs
- EditorZone.cs
- TypeLoadException.cs
- OracleParameterCollection.cs
- TransformerTypeCollection.cs
- NotCondition.cs
- ShapingEngine.cs
- UnlockInstanceCommand.cs
- CompareInfo.cs
- NegotiationTokenAuthenticatorState.cs
- Operator.cs
- DPAPIProtectedConfigurationProvider.cs
- Region.cs
- EventLogConfiguration.cs
- FrameworkTextComposition.cs
- ValidationResult.cs
- TextDecorationCollection.cs
- TerminatorSinks.cs
- BindableTemplateBuilder.cs
- ModelPropertyImpl.cs
- IncrementalHitTester.cs
- LocalizationCodeDomSerializer.cs
- SqlUserDefinedAggregateAttribute.cs
- Sql8ExpressionRewriter.cs
- SqlWebEventProvider.cs
- DateTimeFormatInfo.cs
- CustomErrorsSection.cs
- _RequestCacheProtocol.cs
- DBPropSet.cs
- XmlUtilWriter.cs
- CodeDomDecompiler.cs
- pingexception.cs
- FreezableDefaultValueFactory.cs
- Typeface.cs
- SQLInt64.cs
- FactoryGenerator.cs
- WindowsNonControl.cs
- DynamicFilterExpression.cs
- PageStatePersister.cs
- ApplicationServicesHostFactory.cs
- EntityCommandCompilationException.cs
- DelegatingTypeDescriptionProvider.cs
- ObjectIDGenerator.cs
- ToolStripPanel.cs
- CalendarButtonAutomationPeer.cs
- NotFiniteNumberException.cs
- CustomPeerResolverService.cs
- SqlClientFactory.cs
- TreeNode.cs
- EventLogPermissionEntryCollection.cs
- PriorityItem.cs
- SelectionEditor.cs
- NameSpaceExtractor.cs
- UIElementCollection.cs
- TrackBar.cs
- MarkerProperties.cs
- EdmFunction.cs
- AnyReturnReader.cs
- MatrixValueSerializer.cs
- IdentityHolder.cs