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
- ReadContentAsBinaryHelper.cs
- ProfileService.cs
- Brushes.cs
- FilteredDataSetHelper.cs
- DrawingVisualDrawingContext.cs
- ScriptResourceInfo.cs
- TraceLevelStore.cs
- DateTimeConverter.cs
- XmlAttributeProperties.cs
- ParallelQuery.cs
- KeyValueSerializer.cs
- RequestQueryParser.cs
- SQLInt16.cs
- TextSearch.cs
- X509CertificateStore.cs
- DashStyle.cs
- TextBox.cs
- ListViewPagedDataSource.cs
- mda.cs
- SmtpClient.cs
- WebPartTransformerAttribute.cs
- DataTableExtensions.cs
- TableLayoutCellPaintEventArgs.cs
- ObjectStateManager.cs
- cookiecollection.cs
- Timeline.cs
- TimeZoneInfo.cs
- VisualProxy.cs
- MetricEntry.cs
- UserInitiatedRoutedEventPermission.cs
- CodeMemberField.cs
- InfoCardService.cs
- CalendarTable.cs
- StylusPointPropertyId.cs
- TranslateTransform3D.cs
- ListDesigner.cs
- FormsAuthenticationEventArgs.cs
- DesignTimeSiteMapProvider.cs
- ToolStripControlHost.cs
- SecureUICommand.cs
- ContainerSelectorGlyph.cs
- DataSourceControlBuilder.cs
- URLAttribute.cs
- GeometryGroup.cs
- X509CertificateCollection.cs
- PropertyConverter.cs
- ScrollData.cs
- LingerOption.cs
- CultureTable.cs
- SecurityPolicySection.cs
- EntityDataSourceDataSelection.cs
- SqlCachedBuffer.cs
- DBSchemaRow.cs
- HttpWrapper.cs
- DbgUtil.cs
- DropAnimation.xaml.cs
- DbParameterHelper.cs
- DataGridHyperlinkColumn.cs
- OneToOneMappingSerializer.cs
- TempFiles.cs
- MgmtConfigurationRecord.cs
- Token.cs
- WebBrowserUriTypeConverter.cs
- EditModeSwitchButton.cs
- AgileSafeNativeMemoryHandle.cs
- UnsafePeerToPeerMethods.cs
- ToolStripStatusLabel.cs
- AsymmetricSignatureDeformatter.cs
- PasswordPropertyTextAttribute.cs
- WindowsSysHeader.cs
- SafeReadContext.cs
- FrameSecurityDescriptor.cs
- WebPartDisplayModeCollection.cs
- CodeNamespace.cs
- UxThemeWrapper.cs
- ReflectionTypeLoadException.cs
- PreviewPageInfo.cs
- SiteOfOriginContainer.cs
- UnsafeNativeMethods.cs
- UmAlQuraCalendar.cs
- RoleManagerModule.cs
- LineGeometry.cs
- CheckBoxField.cs
- PlatformCulture.cs
- RuntimeResourceSet.cs
- TemplatedMailWebEventProvider.cs
- TabPage.cs
- TextServicesCompartment.cs
- SqlWriter.cs
- IdentityNotMappedException.cs
- MetadataConversionError.cs
- ListItemCollection.cs
- XslTransform.cs
- QilScopedVisitor.cs
- IChannel.cs
- DescendantBaseQuery.cs
- CngKey.cs
- LinearQuaternionKeyFrame.cs
- InstanceHandle.cs
- input.cs