Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilUnary.cs / 1 / QilUnary.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace System.Xml.Xsl.Qil {
///
/// View over a Qil operator having one child.
///
///
/// Don't construct QIL nodes directly; instead, use the QilFactory .
///
internal class QilUnary : QilNode {
private QilNode child;
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// Construct a new node
///
public QilUnary(QilNodeType nodeType, QilNode child) : base(nodeType) {
this.child = child;
}
//-----------------------------------------------
// IList methods -- override
//-----------------------------------------------
public override int Count {
get { return 1; }
}
public override QilNode this[int index] {
get { if (index != 0) throw new IndexOutOfRangeException(); return this.child; }
set { if (index != 0) throw new IndexOutOfRangeException(); this.child = value; }
}
//-----------------------------------------------
// QilUnary methods
//-----------------------------------------------
public QilNode Child {
get { return this.child; }
set { this.child = value; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace System.Xml.Xsl.Qil {
///
/// View over a Qil operator having one child.
///
///
/// Don't construct QIL nodes directly; instead, use the QilFactory .
///
internal class QilUnary : QilNode {
private QilNode child;
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// Construct a new node
///
public QilUnary(QilNodeType nodeType, QilNode child) : base(nodeType) {
this.child = child;
}
//-----------------------------------------------
// IList methods -- override
//-----------------------------------------------
public override int Count {
get { return 1; }
}
public override QilNode this[int index] {
get { if (index != 0) throw new IndexOutOfRangeException(); return this.child; }
set { if (index != 0) throw new IndexOutOfRangeException(); this.child = value; }
}
//-----------------------------------------------
// QilUnary methods
//-----------------------------------------------
public QilNode Child {
get { return this.child; }
set { this.child = value; }
}
}
}
// 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
- MenuEventArgs.cs
- DataBoundControlAdapter.cs
- AppDomainUnloadedException.cs
- cryptoapiTransform.cs
- SyndicationLink.cs
- IISMapPath.cs
- RuleAction.cs
- ExpressionDumper.cs
- MsmqInputSessionChannel.cs
- SafeArchiveContext.cs
- ConditionalAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- StylusPointPropertyUnit.cs
- metadatamappinghashervisitor.cs
- AxisAngleRotation3D.cs
- DesignerView.xaml.cs
- StylusEventArgs.cs
- ColorBlend.cs
- XmlNotation.cs
- SqlTypeSystemProvider.cs
- Transform.cs
- ApplicationFileCodeDomTreeGenerator.cs
- References.cs
- SqlCommand.cs
- HttpModuleCollection.cs
- ConvertEvent.cs
- CommandField.cs
- DetailsViewDeleteEventArgs.cs
- SystemResources.cs
- IdentityHolder.cs
- MetadataArtifactLoaderCompositeFile.cs
- InfoCardClaimCollection.cs
- CharacterHit.cs
- CapabilitiesPattern.cs
- ButtonChrome.cs
- FontSourceCollection.cs
- precedingquery.cs
- StructuralObject.cs
- SettingsPropertyIsReadOnlyException.cs
- NullableConverter.cs
- RoleManagerSection.cs
- MostlySingletonList.cs
- RequestCachingSection.cs
- UnsafeNativeMethods.cs
- RawMouseInputReport.cs
- QilLoop.cs
- LinkLabel.cs
- DbParameterHelper.cs
- BulletedListEventArgs.cs
- Regex.cs
- FormatConvertedBitmap.cs
- ArrayTypeMismatchException.cs
- CultureInfo.cs
- ResourceAssociationSetEnd.cs
- XmlMtomReader.cs
- MD5.cs
- SamlDoNotCacheCondition.cs
- ConfigurationSection.cs
- TcpAppDomainProtocolHandler.cs
- ForeignConstraint.cs
- AutoGeneratedFieldProperties.cs
- ConfigXmlText.cs
- DataColumnChangeEvent.cs
- CodeVariableReferenceExpression.cs
- CodeAssignStatement.cs
- CharacterBuffer.cs
- HtmlInputText.cs
- EmbeddedObject.cs
- OracleColumn.cs
- QueryResponse.cs
- KeyEventArgs.cs
- WS2007HttpBindingElement.cs
- Pen.cs
- VisualStyleElement.cs
- MetaForeignKeyColumn.cs
- GlyphsSerializer.cs
- mactripleDES.cs
- DiscoveryClientOutputChannel.cs
- MessageFormatterConverter.cs
- SymbolResolver.cs
- TableItemProviderWrapper.cs
- EpmCustomContentSerializer.cs
- RepeaterDesigner.cs
- BooleanAnimationUsingKeyFrames.cs
- EntityDataSourceMemberPath.cs
- SqlDataReader.cs
- BidPrivateBase.cs
- TextTreeRootNode.cs
- Hash.cs
- StateItem.cs
- FixedSOMPage.cs
- Variant.cs
- Int32CollectionConverter.cs
- InvariantComparer.cs
- PolicyLevel.cs
- ConfigXmlAttribute.cs
- DelayDesigner.cs
- TimeSpanOrInfiniteValidator.cs
- InvalidPrinterException.cs
- FlowDocumentPaginator.cs