Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- WebPartTransformer.cs
- PseudoWebRequest.cs
- mediaeventargs.cs
- HitTestFilterBehavior.cs
- Aggregates.cs
- ApplicationBuildProvider.cs
- DbParameterCollection.cs
- GuidelineCollection.cs
- Math.cs
- HttpApplication.cs
- InvalidAsynchronousStateException.cs
- ErrorRuntimeConfig.cs
- AutoGeneratedFieldProperties.cs
- DoubleLinkListEnumerator.cs
- EventlogProvider.cs
- sitestring.cs
- ManagementPath.cs
- NullableLongAverageAggregationOperator.cs
- ApplicationHost.cs
- TreeView.cs
- PrtCap_Reader.cs
- ObjectDataSourceView.cs
- WorkflowViewService.cs
- EntityWithKeyStrategy.cs
- HttpRuntime.cs
- BooleanStorage.cs
- HttpFileCollection.cs
- DataGridViewAddColumnDialog.cs
- InlineObject.cs
- CommandHelpers.cs
- ButtonColumn.cs
- OracleBoolean.cs
- QilScopedVisitor.cs
- ObjectRef.cs
- ClickablePoint.cs
- CommandID.cs
- RadioButton.cs
- BevelBitmapEffect.cs
- DefaultHttpHandler.cs
- MailSettingsSection.cs
- IndexedString.cs
- SqlExpressionNullability.cs
- VideoDrawing.cs
- MultipartContentParser.cs
- IgnoreDataMemberAttribute.cs
- ObjectParameter.cs
- XmlNullResolver.cs
- ExpressionsCollectionEditor.cs
- DateTimeOffsetAdapter.cs
- GridEntry.cs
- ConfigXmlCDataSection.cs
- SeverityFilter.cs
- control.ime.cs
- CompiledQuery.cs
- BaseResourcesBuildProvider.cs
- Propagator.cs
- Pkcs7Signer.cs
- DelayedRegex.cs
- MethodRental.cs
- RankException.cs
- FamilyTypefaceCollection.cs
- Vector3D.cs
- FilterQuery.cs
- UniqueCodeIdentifierScope.cs
- x509utils.cs
- AuthorizationRuleCollection.cs
- HtmlEncodedRawTextWriter.cs
- SqlBuilder.cs
- ResourceProviderFactory.cs
- CopyNodeSetAction.cs
- ArrangedElementCollection.cs
- SqlUdtInfo.cs
- CollectionBase.cs
- XmlCodeExporter.cs
- FacetChecker.cs
- BufferedReceiveManager.cs
- ContentPlaceHolder.cs
- RootDesignerSerializerAttribute.cs
- RowToParametersTransformer.cs
- SelectedDatesCollection.cs
- GiveFeedbackEvent.cs
- LoginDesignerUtil.cs
- Baml2006KeyRecord.cs
- AssemblyAttributesGoHere.cs
- cookieexception.cs
- ProgressPage.cs
- FileLevelControlBuilderAttribute.cs
- GridEntry.cs
- DrawingContextWalker.cs
- EntityContainerEntitySet.cs
- InfoCardClaimCollection.cs
- CustomCategoryAttribute.cs
- MultipartIdentifier.cs
- EntityDataSourceWrapperCollection.cs
- Types.cs
- AssociatedControlConverter.cs
- BmpBitmapDecoder.cs
- PropertyEmitterBase.cs
- GPRECT.cs
- DatasetMethodGenerator.cs