Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / System / data / design / DataSourceXmlTextReader.cs / 1 / DataSourceXmlTextReader.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //----------------------------------------------------------------------------- namespace System.Data.Design { using System; using System.Collections; using System.IO; using System.Text; using System.Xml; using System.Xml.Schema; internal class DataSourceXmlTextReader : XmlTextReader { private DesignDataSource dataSource; private bool readingDataSource; internal DataSourceXmlTextReader(DesignDataSource dataSource, TextReader textReader) : base(textReader) { this.dataSource = dataSource; this.readingDataSource = false; } internal DataSourceXmlTextReader(DesignDataSource dataSource, Stream stream) : base(stream) { this.dataSource = dataSource; this.readingDataSource = false; } public override bool Read() { bool result = base.Read(); if (result && !readingDataSource) { if (NodeType == XmlNodeType.Element) { if (LocalName == SchemaName.DataSourceRoot && NamespaceURI == SchemaName.DataSourceNamespace) { readingDataSource = true; dataSource.ReadDataSourceExtraInformation(this); result = !EOF; } } } return result; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeSystemHelpers.cs
- SiteMapNodeItem.cs
- Vector3dCollection.cs
- DelegatingTypeDescriptionProvider.cs
- StyleSelector.cs
- StructuralCache.cs
- EdmTypeAttribute.cs
- ResourceReferenceKeyNotFoundException.cs
- ProcessInfo.cs
- Context.cs
- KeyedQueue.cs
- UpdatableWrapper.cs
- LZCodec.cs
- Clause.cs
- Queue.cs
- ProfileBuildProvider.cs
- StringSource.cs
- SendKeys.cs
- ListViewUpdateEventArgs.cs
- SQLInt64.cs
- Paragraph.cs
- elementinformation.cs
- EntryPointNotFoundException.cs
- DecoderReplacementFallback.cs
- PartManifestEntry.cs
- SoapSchemaMember.cs
- DiscreteKeyFrames.cs
- OdbcStatementHandle.cs
- ExceptionWrapper.cs
- QueryComponents.cs
- HttpListenerResponse.cs
- HeaderCollection.cs
- RequestQueue.cs
- InvalidOperationException.cs
- PageThemeParser.cs
- InputLangChangeRequestEvent.cs
- WSDualHttpBindingCollectionElement.cs
- OAVariantLib.cs
- MessageBuffer.cs
- SamlDelegatingWriter.cs
- BamlRecordWriter.cs
- PowerModeChangedEventArgs.cs
- CodeMemberEvent.cs
- DesignTimeTemplateParser.cs
- EntityDescriptor.cs
- MsmqInputSessionChannelListener.cs
- LayoutSettings.cs
- FontStretchConverter.cs
- DBSchemaRow.cs
- Brush.cs
- PenContext.cs
- StructuralCache.cs
- EdmComplexPropertyAttribute.cs
- ProcessModule.cs
- CorrelationResolver.cs
- EventPrivateKey.cs
- _UriSyntax.cs
- ListViewDeleteEventArgs.cs
- NativeMethods.cs
- KoreanLunisolarCalendar.cs
- DataBinder.cs
- WorkflowMarkupElementEventArgs.cs
- ObjectToModelValueConverter.cs
- DataViewListener.cs
- sqlnorm.cs
- SerialPinChanges.cs
- FontWeights.cs
- wgx_commands.cs
- MailDefinition.cs
- SqlLiftWhereClauses.cs
- _DomainName.cs
- DiagnosticTraceSource.cs
- UnsafeNativeMethods.cs
- AuthenticationService.cs
- TdsParserHelperClasses.cs
- diagnosticsswitches.cs
- XmlUtf8RawTextWriter.cs
- SoapCodeExporter.cs
- CryptoApi.cs
- ExceptionHelpers.cs
- SchemaImporter.cs
- PropertyValueUIItem.cs
- UriTemplateLiteralQueryValue.cs
- AssemblyNameProxy.cs
- Window.cs
- Simplifier.cs
- BindValidationContext.cs
- EntityWithChangeTrackerStrategy.cs
- ColumnWidthChangingEvent.cs
- Floater.cs
- FixedTextPointer.cs
- AssociationSetMetadata.cs
- WebPartEditorOkVerb.cs
- SeverityFilter.cs
- MemberBinding.cs
- ConvertTextFrag.cs
- ProjectionCamera.cs
- HtmlInputCheckBox.cs
- SqlWriter.cs
- xsdvalidator.cs