Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- JournalEntryStack.cs
- AsyncResult.cs
- DaylightTime.cs
- ListSortDescriptionCollection.cs
- CollectionAdapters.cs
- BlobPersonalizationState.cs
- KeyValueConfigurationCollection.cs
- Repeater.cs
- IncrementalReadDecoders.cs
- Matrix3D.cs
- ComponentSerializationService.cs
- ContentOperations.cs
- HealthMonitoringSectionHelper.cs
- QilNode.cs
- EventKeyword.cs
- DataColumnMappingCollection.cs
- PropertyItemInternal.cs
- DependencyProperty.cs
- TableParaClient.cs
- ProcessModelInfo.cs
- CodeTypeConstructor.cs
- uribuilder.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- GridItemPattern.cs
- FontDialog.cs
- TextEditorTables.cs
- MimeBasePart.cs
- SettingsBindableAttribute.cs
- ChtmlImageAdapter.cs
- ContentValidator.cs
- LeaseManager.cs
- OdbcRowUpdatingEvent.cs
- XmlProcessingInstruction.cs
- DrawingAttributesDefaultValueFactory.cs
- SqlConnectionStringBuilder.cs
- ConfigurationManagerInternal.cs
- ISAPIRuntime.cs
- DebuggerAttributes.cs
- DataGridViewCellStyle.cs
- FixedSOMPage.cs
- MaterializeFromAtom.cs
- GridItemCollection.cs
- TypeInfo.cs
- TemplatePartAttribute.cs
- XmlDataSourceNodeDescriptor.cs
- TextTreeTextBlock.cs
- ScriptResourceHandler.cs
- ItemCollection.cs
- TextRange.cs
- ElementHostPropertyMap.cs
- X509InitiatorCertificateClientElement.cs
- NameValuePermission.cs
- DependencyPropertyValueSerializer.cs
- UiaCoreApi.cs
- TypeSchema.cs
- DefaultTraceListener.cs
- BypassElementCollection.cs
- CompoundFileIOPermission.cs
- ImagingCache.cs
- DefaultValueAttribute.cs
- HostingPreferredMapPath.cs
- Pair.cs
- String.cs
- ToggleButton.cs
- BuilderPropertyEntry.cs
- BoundsDrawingContextWalker.cs
- typedescriptorpermissionattribute.cs
- ComponentDispatcher.cs
- InvalidWMPVersionException.cs
- RedBlackList.cs
- GeneralTransform3DGroup.cs
- GB18030Encoding.cs
- TextEditorTyping.cs
- Logging.cs
- EventInfo.cs
- XmlWhitespace.cs
- PropertyEntry.cs
- _ConnectStream.cs
- AuthenticationServiceManager.cs
- WsatServiceAddress.cs
- TableLayoutPanelCellPosition.cs
- TagPrefixCollection.cs
- TypeUsage.cs
- ColorContext.cs
- MimePart.cs
- ZipArchive.cs
- TableLayoutPanelCellPosition.cs
- ConstrainedGroup.cs
- CodeMethodReturnStatement.cs
- LookupBindingPropertiesAttribute.cs
- TabPageDesigner.cs
- CodeSnippetCompileUnit.cs
- SqlSelectClauseBuilder.cs
- ValueTypeFixupInfo.cs
- MissingMethodException.cs
- FontFaceLayoutInfo.cs
- ControlValuePropertyAttribute.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- MethodMessage.cs
- LayoutEditorPart.cs