Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / XamlBuildTask / Microsoft / Build / Tasks / Xaml / XamlWrappingReader.cs / 1305376 / XamlWrappingReader.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace Microsoft.Build.Tasks.Xaml { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xaml; internal class XamlWrappingReader : XamlReader, IXamlLineInfo { XamlReader _underlyingReader; internal XamlWrappingReader(XamlReader underlyingReader) { if (underlyingReader == null) { throw FxTrace.Exception.AsError(new ArgumentNullException("underlyingReader")); } _underlyingReader = underlyingReader; } public override bool IsEof { get { return _underlyingReader.IsEof; } } public override XamlMember Member { get { return _underlyingReader.Member; } } public override NamespaceDeclaration Namespace { get { return _underlyingReader.Namespace; } } public override XamlNodeType NodeType { get { return _underlyingReader.NodeType; } } public override bool Read() { return _underlyingReader.Read(); } public override XamlSchemaContext SchemaContext { get { return _underlyingReader.SchemaContext; } } public override XamlType Type { get { return _underlyingReader.Type; } } public override object Value { get { return _underlyingReader.Value; } } private IXamlLineInfo LineInfo { get { return _underlyingReader as IXamlLineInfo; } } #region IXamlLineInfo Members public bool HasLineInfo { get { return LineInfo != null && LineInfo.HasLineInfo; } } public int LineNumber { get { return LineInfo == null ? 0 : LineInfo.LineNumber; } } public int LinePosition { get { return LineInfo == null ? 0 : LineInfo.LinePosition; } } #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
- ControlBuilderAttribute.cs
- HotSpotCollection.cs
- SQLDecimalStorage.cs
- DependencyPropertyConverter.cs
- DocumentCollection.cs
- SplayTreeNode.cs
- Rect3D.cs
- CharacterString.cs
- TableLayout.cs
- OutputCacheSection.cs
- ResourceIDHelper.cs
- TargetConverter.cs
- DataSourceCache.cs
- DataSetMappper.cs
- StylusPointProperty.cs
- TypeNameHelper.cs
- TypographyProperties.cs
- RelationshipDetailsRow.cs
- HtmlInputSubmit.cs
- MenuAdapter.cs
- Sql8ConformanceChecker.cs
- CodeRegionDirective.cs
- CommonRemoteMemoryBlock.cs
- ToolStripOverflowButton.cs
- ContentPlaceHolder.cs
- ToolStripContentPanel.cs
- EntityStoreSchemaGenerator.cs
- SqlCommandSet.cs
- RawStylusInputCustomData.cs
- TopClause.cs
- NetworkAddressChange.cs
- NameValueConfigurationElement.cs
- EventPropertyMap.cs
- ActiveXSite.cs
- EditingMode.cs
- WebUtility.cs
- FigureHelper.cs
- ComboBoxItem.cs
- FrameDimension.cs
- RegisteredExpandoAttribute.cs
- DoubleConverter.cs
- AccessedThroughPropertyAttribute.cs
- NonVisualControlAttribute.cs
- DirectoryInfo.cs
- AdCreatedEventArgs.cs
- BamlReader.cs
- ListBoxItemAutomationPeer.cs
- ConfigXmlText.cs
- InputElement.cs
- StrokeNodeOperations2.cs
- ContractMethodInfo.cs
- AbandonedMutexException.cs
- PackageRelationship.cs
- WebReferencesBuildProvider.cs
- StringUtil.cs
- MemoryMappedViewAccessor.cs
- SpecularMaterial.cs
- ZipIOBlockManager.cs
- SystemColorTracker.cs
- ToolStripLocationCancelEventArgs.cs
- AppModelKnownContentFactory.cs
- SqlTriggerContext.cs
- ServiceProviders.cs
- PasswordBoxAutomationPeer.cs
- XmlValidatingReader.cs
- COM2TypeInfoProcessor.cs
- SafeLibraryHandle.cs
- ListViewSortEventArgs.cs
- OleDbPropertySetGuid.cs
- MenuAutoFormat.cs
- XMLSyntaxException.cs
- ReadWriteObjectLock.cs
- QueryInterceptorAttribute.cs
- StylusShape.cs
- MemoryMappedFile.cs
- Deflater.cs
- LinqDataSourceView.cs
- DesignOnlyAttribute.cs
- Label.cs
- SqlCommandBuilder.cs
- CommonDialog.cs
- MachineKeySection.cs
- CursorConverter.cs
- ProgressPage.cs
- StaticExtension.cs
- UserControl.cs
- TemplatedAdorner.cs
- BinaryNode.cs
- RSACryptoServiceProvider.cs
- X500Name.cs
- ZoneLinkButton.cs
- Vector3DIndependentAnimationStorage.cs
- RightsManagementEncryptionTransform.cs
- Base64Stream.cs
- XmlSchemaSet.cs
- TextTreeTextNode.cs
- WindowsTokenRoleProvider.cs
- HybridDictionary.cs
- PaperSource.cs
- SignatureHelper.cs