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
- ReadOnlyCollectionBase.cs
- LostFocusEventManager.cs
- Label.cs
- OpacityConverter.cs
- PageCodeDomTreeGenerator.cs
- ICollection.cs
- DataContractSet.cs
- ForwardPositionQuery.cs
- PersonalizableAttribute.cs
- CounterSample.cs
- TextChangedEventArgs.cs
- BamlTreeNode.cs
- UiaCoreApi.cs
- AlternateView.cs
- ReliabilityContractAttribute.cs
- compensatingcollection.cs
- CodeDirectionExpression.cs
- Command.cs
- HttpModuleAction.cs
- DataGridViewTextBoxCell.cs
- QilSortKey.cs
- WeakKeyDictionary.cs
- RbTree.cs
- DeferredReference.cs
- ComplexBindingPropertiesAttribute.cs
- BoundPropertyEntry.cs
- HandledMouseEvent.cs
- SecurityBindingElement.cs
- SchemaObjectWriter.cs
- BackgroundWorker.cs
- WebPartAuthorizationEventArgs.cs
- SwitchElementsCollection.cs
- DocumentSequenceHighlightLayer.cs
- DataGridColumnEventArgs.cs
- StreamingContext.cs
- TextEditorTyping.cs
- ClientSettingsSection.cs
- ObjectStateEntryDbDataRecord.cs
- RowCache.cs
- Stream.cs
- RecommendedAsConfigurableAttribute.cs
- PageWrapper.cs
- VarInfo.cs
- InvalidCommandTreeException.cs
- SafeNativeMethods.cs
- DataSvcMapFile.cs
- oledbconnectionstring.cs
- CanExecuteRoutedEventArgs.cs
- IpcServerChannel.cs
- SiteMap.cs
- ToolboxCategoryItems.cs
- DocumentProperties.cs
- ColumnProvider.cs
- DoubleAnimationClockResource.cs
- BindingContext.cs
- MexHttpsBindingElement.cs
- Wildcard.cs
- SamlAudienceRestrictionCondition.cs
- PerformanceCounterPermission.cs
- StyleReferenceConverter.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataListItem.cs
- MenuItemStyleCollection.cs
- XPathDocumentNavigator.cs
- IPPacketInformation.cs
- OrderedDictionary.cs
- IndexerNameAttribute.cs
- NamespaceList.cs
- ColorKeyFrameCollection.cs
- CallbackTimeoutsElement.cs
- BackStopAuthenticationModule.cs
- xmlfixedPageInfo.cs
- ObjectStateEntry.cs
- ToolBar.cs
- RawStylusInputCustomDataList.cs
- GeometryGroup.cs
- Empty.cs
- TemplateParser.cs
- SimpleMailWebEventProvider.cs
- TextOutput.cs
- GacUtil.cs
- TdsParserStaticMethods.cs
- IntSecurity.cs
- HttpResponse.cs
- ParserContext.cs
- CalendarItem.cs
- HandlerBase.cs
- AliasExpr.cs
- DataProtection.cs
- DataBinder.cs
- Effect.cs
- LoadWorkflowCommand.cs
- ApplicationInterop.cs
- StartUpEventArgs.cs
- NamespaceList.cs
- SqlException.cs
- CapabilitiesPattern.cs
- CompiledRegexRunnerFactory.cs
- XmlNodeChangedEventManager.cs
- SvcMapFile.cs