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
- TimeSpanSecondsConverter.cs
- FolderBrowserDialog.cs
- PointKeyFrameCollection.cs
- Imaging.cs
- XsltFunctions.cs
- UrlAuthFailedErrorFormatter.cs
- ServiceModelEnumValidatorAttribute.cs
- ToolStripDropDownClosingEventArgs.cs
- FreezableCollection.cs
- EntityTypeEmitter.cs
- DSASignatureFormatter.cs
- DecoderReplacementFallback.cs
- GB18030Encoding.cs
- PerformanceCounterPermissionAttribute.cs
- ConnectionManagementElement.cs
- TextParagraphView.cs
- PackageDigitalSignature.cs
- TextSerializer.cs
- Size.cs
- Base64Stream.cs
- XAMLParseException.cs
- TagPrefixAttribute.cs
- ipaddressinformationcollection.cs
- EntityDataSourceViewSchema.cs
- EntityType.cs
- UInt64Converter.cs
- DispatcherObject.cs
- CodeMemberProperty.cs
- VariableExpressionConverter.cs
- ViewBox.cs
- KeyConverter.cs
- WorkflowMessageEventArgs.cs
- BookmarkScope.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- WorkflowDesignerColors.cs
- ListMarkerSourceInfo.cs
- BaseAddressPrefixFilterElement.cs
- TraceLevelStore.cs
- DynamicMethod.cs
- VisualStyleElement.cs
- Clipboard.cs
- DataGridViewTopRowAccessibleObject.cs
- RenderContext.cs
- DecimalStorage.cs
- BStrWrapper.cs
- XmlRawWriterWrapper.cs
- PropertyInfoSet.cs
- DocobjHost.cs
- Publisher.cs
- StackSpiller.Generated.cs
- CodeDomSerializer.cs
- SystemTcpStatistics.cs
- GenericIdentity.cs
- ValidationErrorEventArgs.cs
- ControlHelper.cs
- CompareValidator.cs
- TemplateAction.cs
- Item.cs
- _BufferOffsetSize.cs
- DetailsViewInsertEventArgs.cs
- CatalogZone.cs
- AccessDataSourceView.cs
- GregorianCalendarHelper.cs
- WebDescriptionAttribute.cs
- SessionState.cs
- ParserHooks.cs
- DifferencingCollection.cs
- Profiler.cs
- SafeMemoryMappedViewHandle.cs
- UrlPath.cs
- IListConverters.cs
- TextEndOfLine.cs
- ConsoleEntryPoint.cs
- ProcessProtocolHandler.cs
- DataGridItemAutomationPeer.cs
- EncodingFallbackAwareXmlTextWriter.cs
- ColorConvertedBitmapExtension.cs
- TlsnegoTokenAuthenticator.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- MatchingStyle.cs
- HttpResponse.cs
- MenuItemAutomationPeer.cs
- FixedSOMLineCollection.cs
- DataReaderContainer.cs
- designeractionlistschangedeventargs.cs
- SqlVersion.cs
- StrokeIntersection.cs
- WebExceptionStatus.cs
- IApplicationTrustManager.cs
- PopupEventArgs.cs
- CompilerLocalReference.cs
- RtfFormatStack.cs
- dataprotectionpermission.cs
- StandardTransformFactory.cs
- PassportAuthentication.cs
- Base64Encoder.cs
- ScopeCompiler.cs
- util.cs
- ForeignConstraint.cs
- NavigationService.cs