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
- SafeNativeMethods.cs
- ProfilePropertySettingsCollection.cs
- SQLDouble.cs
- DataColumnCollection.cs
- BehaviorEditorPart.cs
- SafeFindHandle.cs
- SymmetricSecurityProtocol.cs
- documentation.cs
- MediaScriptCommandRoutedEventArgs.cs
- ObjectDataSourceMethodEventArgs.cs
- DataBindingExpressionBuilder.cs
- RSAPKCS1SignatureDeformatter.cs
- InputManager.cs
- WsdlBuildProvider.cs
- EventDescriptor.cs
- ExpandoClass.cs
- RuntimeEnvironment.cs
- SafeSystemMetrics.cs
- MimeTypePropertyAttribute.cs
- RTLAwareMessageBox.cs
- FilterEventArgs.cs
- CookieParameter.cs
- CodePageEncoding.cs
- FontStretchConverter.cs
- ActivityExecutorSurrogate.cs
- ScalarOps.cs
- DependencyStoreSurrogate.cs
- DesignTimeTemplateParser.cs
- HandoffBehavior.cs
- ScriptControlManager.cs
- SafeViewOfFileHandle.cs
- BinaryFormatter.cs
- ReadWriteSpinLock.cs
- ColorPalette.cs
- SolidColorBrush.cs
- backend.cs
- MemberHolder.cs
- IPAddressCollection.cs
- DescriptionAttribute.cs
- MailAddressCollection.cs
- FixedElement.cs
- SecurityTokenTypes.cs
- DecimalAnimation.cs
- Helpers.cs
- DbParameterCollection.cs
- DefaultObjectMappingItemCollection.cs
- TimeEnumHelper.cs
- BindingListCollectionView.cs
- UrlMappingsModule.cs
- EventLogTraceListener.cs
- AppearanceEditorPart.cs
- DocumentGridContextMenu.cs
- FormatControl.cs
- UpdateTranslator.cs
- CqlParserHelpers.cs
- CancelEventArgs.cs
- DynamicPhysicalDiscoSearcher.cs
- ScrollChangedEventArgs.cs
- BmpBitmapEncoder.cs
- ProcessProtocolHandler.cs
- BooleanSwitch.cs
- DATA_BLOB.cs
- Bits.cs
- LineGeometry.cs
- QilStrConcat.cs
- XmlDocumentSchema.cs
- ProfileEventArgs.cs
- SqlXml.cs
- KnownAssembliesSet.cs
- UnknownWrapper.cs
- CacheChildrenQuery.cs
- EntityStoreSchemaGenerator.cs
- ImageInfo.cs
- TextTreeInsertUndoUnit.cs
- ADRole.cs
- DataGridTextBoxColumn.cs
- LinkLabel.cs
- BaseValidator.cs
- PrintPageEvent.cs
- OutKeywords.cs
- SchemaCollectionCompiler.cs
- CodeSpit.cs
- PanelDesigner.cs
- CollectionViewProxy.cs
- AncillaryOps.cs
- KnownTypesProvider.cs
- SoapIgnoreAttribute.cs
- PeerNameRecordCollection.cs
- ConfigXmlSignificantWhitespace.cs
- DependencyPropertyDescriptor.cs
- TreeWalker.cs
- ExceptionUtil.cs
- ObjectViewListener.cs
- CasesDictionary.cs
- ConfigXmlElement.cs
- NullRuntimeConfig.cs
- AutoResetEvent.cs
- PostBackOptions.cs
- RoleManagerSection.cs
- ModifierKeysConverter.cs