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
- VideoDrawing.cs
- ScalarConstant.cs
- Events.cs
- FormViewPagerRow.cs
- ErrorTableItemStyle.cs
- ProgressPage.cs
- ToolboxItem.cs
- TimeoutValidationAttribute.cs
- ControlCollection.cs
- DataGridViewCellMouseEventArgs.cs
- OletxVolatileEnlistment.cs
- WhiteSpaceTrimStringConverter.cs
- PropertyCondition.cs
- DataObjectAttribute.cs
- CollectionExtensions.cs
- JsonFormatReaderGenerator.cs
- CatalogZoneBase.cs
- BaseUriHelper.cs
- CompiledQueryCacheKey.cs
- ComplexTypeEmitter.cs
- TypographyProperties.cs
- Logging.cs
- DataPagerCommandEventArgs.cs
- LinqDataSourceInsertEventArgs.cs
- PageAdapter.cs
- ValidatorCompatibilityHelper.cs
- HandlerWithFactory.cs
- BitHelper.cs
- IndentedTextWriter.cs
- TraceSource.cs
- CodeTypeDeclarationCollection.cs
- XsdValidatingReader.cs
- MemoryMappedView.cs
- Decorator.cs
- DataConnectionHelper.cs
- basenumberconverter.cs
- EmbossBitmapEffect.cs
- OutputWindow.cs
- InfoCardBaseException.cs
- OrthographicCamera.cs
- ContractUtils.cs
- CodeDomSerializerException.cs
- WindowsListViewGroupSubsetLink.cs
- AbsoluteQuery.cs
- Grid.cs
- MimeXmlImporter.cs
- Point.cs
- StatusStrip.cs
- AnimationClock.cs
- HttpAsyncResult.cs
- MatrixTransform.cs
- EntityStoreSchemaFilterEntry.cs
- XmlSchemas.cs
- EventPropertyMap.cs
- WebPartMinimizeVerb.cs
- ExternalFile.cs
- WinFormsSpinner.cs
- TransformationRules.cs
- Win32Native.cs
- SmtpClient.cs
- BamlBinaryReader.cs
- CookieProtection.cs
- EventTrigger.cs
- SettingsProperty.cs
- DocumentGridContextMenu.cs
- TypeForwardedToAttribute.cs
- PcmConverter.cs
- CreateSequence.cs
- SyndicationDeserializer.cs
- DPTypeDescriptorContext.cs
- ViewValidator.cs
- ProtectedConfigurationSection.cs
- XmlSchemaSimpleTypeUnion.cs
- SharedStatics.cs
- CatalogZoneBase.cs
- DbProviderFactory.cs
- EqualityComparer.cs
- ListDictionary.cs
- ListViewHitTestInfo.cs
- HtmlControlPersistable.cs
- HostingEnvironmentSection.cs
- UIElementPropertyUndoUnit.cs
- BitmapImage.cs
- ToolStripContextMenu.cs
- TreeChangeInfo.cs
- ISCIIEncoding.cs
- LayoutEditorPart.cs
- StaticDataManager.cs
- TextAnchor.cs
- LinkUtilities.cs
- ApplicationException.cs
- SQLDateTime.cs
- SqlStatistics.cs
- CustomValidator.cs
- RootProjectionNode.cs
- ParameterRetriever.cs
- StaticDataManager.cs
- DataTableMapping.cs
- HtmlEmptyTagControlBuilder.cs
- GetPageNumberCompletedEventArgs.cs