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
- TimeIntervalCollection.cs
- WeakEventManager.cs
- PenContext.cs
- DataGridDesigner.cs
- NamedObject.cs
- ImportRequest.cs
- ReliableChannelFactory.cs
- MatcherBuilder.cs
- CategoryAttribute.cs
- Win32.cs
- X509CertificateCollection.cs
- TextEditor.cs
- WebPartMenuStyle.cs
- EmbeddedMailObjectsCollection.cs
- CrossContextChannel.cs
- OciHandle.cs
- DefaultDiscoveryService.cs
- SafeLibraryHandle.cs
- ExtendedPropertyDescriptor.cs
- StyleSheetDesigner.cs
- ObsoleteAttribute.cs
- DocComment.cs
- NetworkAddressChange.cs
- SizeAnimationClockResource.cs
- TCPListener.cs
- DirectionalLight.cs
- TextWriterTraceListener.cs
- ExceptionWrapper.cs
- querybuilder.cs
- OutputWindow.cs
- SecurityCookieModeValidator.cs
- NullRuntimeConfig.cs
- WebSysDisplayNameAttribute.cs
- DataError.cs
- BufferedGraphicsContext.cs
- ArrayTypeMismatchException.cs
- FlowLayout.cs
- GetPageNumberCompletedEventArgs.cs
- XmlWellformedWriterHelpers.cs
- ParentControlDesigner.cs
- WorkflowViewElement.cs
- Rotation3D.cs
- TdsParameterSetter.cs
- SchemaNames.cs
- NegationPusher.cs
- securitycriticaldataClass.cs
- WindowsImpersonationContext.cs
- ListControl.cs
- MobileErrorInfo.cs
- ExistsInCollection.cs
- Geometry3D.cs
- CreateUserWizardDesigner.cs
- ParentQuery.cs
- DiscoveryService.cs
- DispatchWrapper.cs
- CookielessHelper.cs
- CircleEase.cs
- PathFigure.cs
- ConnectionInterfaceCollection.cs
- PropertyKey.cs
- CatalogZone.cs
- ListBoxItemWrapperAutomationPeer.cs
- NullExtension.cs
- CodeExpressionStatement.cs
- KeyboardNavigation.cs
- EqualityComparer.cs
- SHA1CryptoServiceProvider.cs
- TypographyProperties.cs
- ListViewItemMouseHoverEvent.cs
- CompositeFontFamily.cs
- PartialCachingControl.cs
- Ref.cs
- SqlCommandBuilder.cs
- XPathConvert.cs
- CodeSnippetTypeMember.cs
- MetadataPropertyAttribute.cs
- MtomMessageEncodingBindingElement.cs
- XmlSerializerAssemblyAttribute.cs
- DefaultPropertiesToSend.cs
- SerializableAttribute.cs
- Enum.cs
- CultureInfoConverter.cs
- MemoryStream.cs
- TreeNodeMouseHoverEvent.cs
- Win32.cs
- TreeNodeConverter.cs
- InfocardExtendedInformationEntry.cs
- DataSourceNameHandler.cs
- LinkedList.cs
- ReachPrintTicketSerializer.cs
- SecurityException.cs
- CodeParameterDeclarationExpression.cs
- IgnoreSection.cs
- tabpagecollectioneditor.cs
- TraceLevelHelper.cs
- PageVisual.cs
- LicenseProviderAttribute.cs
- ManagementNamedValueCollection.cs
- BinaryObjectInfo.cs
- ObjectDataSourceFilteringEventArgs.cs