Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- QilUnary.cs
- DataGridTableCollection.cs
- ProcessInfo.cs
- UnsafeNativeMethods.cs
- BaseAutoFormat.cs
- InfoCardRSACryptoProvider.cs
- GacUtil.cs
- InvalidCastException.cs
- UrlPropertyAttribute.cs
- SizeF.cs
- DataControlButton.cs
- SpellerError.cs
- SqlDataSourceCommandParser.cs
- ConfigPathUtility.cs
- XmlQualifiedNameTest.cs
- EventProviderWriter.cs
- InputScopeConverter.cs
- HttpListenerException.cs
- PolicyException.cs
- PanelStyle.cs
- GridViewCommandEventArgs.cs
- TransformDescriptor.cs
- LicenseContext.cs
- SchemaLookupTable.cs
- TimeoutHelper.cs
- TcpServerChannel.cs
- SHA384Managed.cs
- LogConverter.cs
- RecognizerInfo.cs
- ControlPropertyNameConverter.cs
- securitycriticaldataformultiplegetandset.cs
- FixedSOMTable.cs
- KeyInterop.cs
- ToolboxDataAttribute.cs
- ObjectStateFormatter.cs
- VScrollProperties.cs
- BitmapEncoder.cs
- BitmapImage.cs
- DataContractSerializerSection.cs
- PipelineModuleStepContainer.cs
- BufferedStream.cs
- InputScopeNameConverter.cs
- PageHandlerFactory.cs
- MSAANativeProvider.cs
- SchemaCollectionPreprocessor.cs
- HttpException.cs
- CreateParams.cs
- XmlComplianceUtil.cs
- SettingsBase.cs
- DNS.cs
- ComboBoxItem.cs
- StructuredCompositeActivityDesigner.cs
- SchemaComplexType.cs
- PrinterResolution.cs
- SafeHandles.cs
- ResourceDefaultValueAttribute.cs
- EncryptedKey.cs
- GorillaCodec.cs
- AttributeUsageAttribute.cs
- clipboard.cs
- UICuesEvent.cs
- FileAuthorizationModule.cs
- PropertiesTab.cs
- GeometryGroup.cs
- Util.cs
- ProfileService.cs
- XMLUtil.cs
- ListBoxItemAutomationPeer.cs
- MachineKeyConverter.cs
- XmlReflectionImporter.cs
- XsdBuilder.cs
- BaseDataBoundControl.cs
- MimeTypeAttribute.cs
- ByteConverter.cs
- OutputCacheProfile.cs
- LocatorGroup.cs
- UseLicense.cs
- Pkcs7Signer.cs
- RegionIterator.cs
- WorkflowDesignerMessageFilter.cs
- GridItemCollection.cs
- WindowsSolidBrush.cs
- CharKeyFrameCollection.cs
- MouseCaptureWithinProperty.cs
- XslUrlEditor.cs
- ExtractedStateEntry.cs
- LinkDescriptor.cs
- LoginCancelEventArgs.cs
- ToolStripScrollButton.cs
- ListManagerBindingsCollection.cs
- TextSerializer.cs
- StrongNameIdentityPermission.cs
- WebBrowserHelper.cs
- ParseHttpDate.cs
- TreeView.cs
- entitydatasourceentitysetnameconverter.cs
- AttachedPropertyInfo.cs
- Token.cs
- UnsafeNativeMethods.cs
- TreeView.cs