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
- NativeWrapper.cs
- ToolBarPanel.cs
- ObjectSecurity.cs
- SecurityTokenValidationException.cs
- MethodExpr.cs
- FontSourceCollection.cs
- QueryPageSettingsEventArgs.cs
- WindowsBrush.cs
- BinaryFormatter.cs
- RegularExpressionValidator.cs
- Stream.cs
- LineServices.cs
- EdmComplexTypeAttribute.cs
- SQLSingleStorage.cs
- diagnosticsswitches.cs
- BinaryObjectWriter.cs
- ControlCollection.cs
- DataServiceRequestException.cs
- MSAAWinEventWrap.cs
- WindowsGraphicsCacheManager.cs
- ImageField.cs
- LicenseContext.cs
- ExtendedPropertiesHandler.cs
- RadioButtonRenderer.cs
- GlyphingCache.cs
- SourceFilter.cs
- MergeExecutor.cs
- LineProperties.cs
- FormatException.cs
- RayMeshGeometry3DHitTestResult.cs
- MgmtConfigurationRecord.cs
- LinkButton.cs
- ViewGenResults.cs
- GetWinFXPath.cs
- BulletedListDesigner.cs
- Evidence.cs
- Run.cs
- CultureSpecificStringDictionary.cs
- FormatException.cs
- PropertyPathConverter.cs
- UIElementHelper.cs
- RectangleGeometry.cs
- InheritanceContextChangedEventManager.cs
- MdiWindowListItemConverter.cs
- SmiTypedGetterSetter.cs
- AliasedSlot.cs
- BoolExpr.cs
- PersonalizationAdministration.cs
- SoapSchemaImporter.cs
- SamlSubject.cs
- AdornerLayer.cs
- RawTextInputReport.cs
- SoapMessage.cs
- QilStrConcat.cs
- ListViewItemEventArgs.cs
- InfocardClientCredentials.cs
- DbMetaDataFactory.cs
- shaperfactory.cs
- CodeAttributeArgumentCollection.cs
- IpcChannel.cs
- RectAnimationClockResource.cs
- SimpleWebHandlerParser.cs
- CategoryNameCollection.cs
- TcpPortSharing.cs
- SafeReadContext.cs
- CodeArrayCreateExpression.cs
- ImageBrush.cs
- IPPacketInformation.cs
- EmptyControlCollection.cs
- MembershipUser.cs
- Focus.cs
- RightNameExpirationInfoPair.cs
- AggregateNode.cs
- InfoCardAsymmetricCrypto.cs
- Path.cs
- PageVisual.cs
- SplineKeyFrames.cs
- DrawingDrawingContext.cs
- ServiceModelConfigurationElementCollection.cs
- RtfFormatStack.cs
- SapiInterop.cs
- Rfc4050KeyFormatter.cs
- BinHexDecoder.cs
- WebServiceData.cs
- Double.cs
- ActivityCodeDomReferenceService.cs
- ConsoleTraceListener.cs
- MessageHeaderAttribute.cs
- WebPartCloseVerb.cs
- SqlBulkCopyColumnMapping.cs
- DrawingDrawingContext.cs
- RuleSetDialog.Designer.cs
- DynamicDocumentPaginator.cs
- XmlSchemaType.cs
- ColumnBinding.cs
- NameSpaceExtractor.cs
- _DigestClient.cs
- TabControl.cs
- SByteStorage.cs
- AnnotationComponentChooser.cs