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
- DbReferenceCollection.cs
- HttpEncoder.cs
- UriScheme.cs
- InvalidDataException.cs
- Run.cs
- ImpersonateTokenRef.cs
- Table.cs
- ConfigurationPermission.cs
- DefaultBindingPropertyAttribute.cs
- EqualityComparer.cs
- XmlArrayItemAttribute.cs
- XmlSchemaType.cs
- TripleDESCryptoServiceProvider.cs
- SingleAnimationUsingKeyFrames.cs
- GeometryConverter.cs
- FormsAuthenticationEventArgs.cs
- SmtpReplyReaderFactory.cs
- DefaultBindingPropertyAttribute.cs
- Model3DGroup.cs
- sapiproxy.cs
- DBConnectionString.cs
- DesignerCategoryAttribute.cs
- SupportingTokenSpecification.cs
- AssemblyInfo.cs
- Canvas.cs
- LOSFormatter.cs
- GeneralTransform3DTo2DTo3D.cs
- BrowserCapabilitiesCodeGenerator.cs
- FileDialog.cs
- SrgsElementList.cs
- AsyncOperationContext.cs
- BindingsCollection.cs
- JulianCalendar.cs
- ClientFormsIdentity.cs
- LabelEditEvent.cs
- SqlTypesSchemaImporter.cs
- ProtocolsConfigurationEntry.cs
- StreamWriter.cs
- SqlServer2KCompatibilityAnnotation.cs
- DispatcherSynchronizationContext.cs
- PtsPage.cs
- SessionEndingCancelEventArgs.cs
- ColumnMap.cs
- WebBrowserDocumentCompletedEventHandler.cs
- TextRunCacheImp.cs
- CheckBoxPopupAdapter.cs
- TransformPatternIdentifiers.cs
- QueueAccessMode.cs
- CustomError.cs
- ImageCreator.cs
- SvcMapFileLoader.cs
- SystemColorTracker.cs
- xdrvalidator.cs
- Size3D.cs
- InOutArgument.cs
- LookupBindingPropertiesAttribute.cs
- XmlNodeReader.cs
- XmlQueryRuntime.cs
- ApplicationSettingsBase.cs
- SqlConnectionManager.cs
- CaseInsensitiveOrdinalStringComparer.cs
- EndpointInfo.cs
- StringConverter.cs
- SystemDiagnosticsSection.cs
- BitmapCache.cs
- BindToObject.cs
- TagMapCollection.cs
- FixedSOMGroup.cs
- AccessViolationException.cs
- DbMetaDataFactory.cs
- SQLStringStorage.cs
- PropertyMapper.cs
- RunClient.cs
- ListenerElementsCollection.cs
- OleDbException.cs
- URLIdentityPermission.cs
- RecipientInfo.cs
- _NetRes.cs
- NavigationProperty.cs
- ChunkedMemoryStream.cs
- ChangeConflicts.cs
- Mouse.cs
- Permission.cs
- AssociatedControlConverter.cs
- GeneralTransform3DGroup.cs
- SafeMemoryMappedFileHandle.cs
- DataSourceCache.cs
- SchemaConstraints.cs
- ActivationArguments.cs
- _DisconnectOverlappedAsyncResult.cs
- OdbcParameter.cs
- IdnMapping.cs
- XmlDataSourceDesigner.cs
- DesignerRegion.cs
- SymmetricKeyWrap.cs
- DrawingVisualDrawingContext.cs
- ReadOnlyNameValueCollection.cs
- ConditionalAttribute.cs
- FunctionNode.cs
- Icon.cs