Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- IndentedWriter.cs
- HandlerBase.cs
- TraceUtility.cs
- Adorner.cs
- SHA256Managed.cs
- LocalValueEnumerator.cs
- ExternalCalls.cs
- ContextDataSourceContextData.cs
- ListControlConvertEventArgs.cs
- HwndStylusInputProvider.cs
- ScalarRestriction.cs
- RenderDataDrawingContext.cs
- Deflater.cs
- EvidenceBase.cs
- Thumb.cs
- TableAdapterManagerNameHandler.cs
- StylusDevice.cs
- NativeRecognizer.cs
- UrlAuthorizationModule.cs
- DataListItem.cs
- RotationValidation.cs
- GridViewDeleteEventArgs.cs
- HTMLTextWriter.cs
- CharacterHit.cs
- ByteRangeDownloader.cs
- ExecutorLocksHeldException.cs
- Facet.cs
- LineSegment.cs
- OdbcTransaction.cs
- OdbcConnectionOpen.cs
- Freezable.cs
- TreeViewItem.cs
- TileBrush.cs
- RTLAwareMessageBox.cs
- WebMessageEncoderFactory.cs
- CharacterMetrics.cs
- NotSupportedException.cs
- NamedObject.cs
- InvalidPropValue.cs
- BindingsSection.cs
- StringToken.cs
- PackageStore.cs
- XMLSyntaxException.cs
- PieceNameHelper.cs
- NavigationCommands.cs
- XmlFormatExtensionPrefixAttribute.cs
- MultipleViewProviderWrapper.cs
- ZipIOExtraFieldPaddingElement.cs
- Timer.cs
- FixedPageAutomationPeer.cs
- InstallerTypeAttribute.cs
- WhitespaceRuleLookup.cs
- ConsumerConnectionPoint.cs
- NativeMethods.cs
- SamlNameIdentifierClaimResource.cs
- TextEmbeddedObject.cs
- Evidence.cs
- NamedPipeProcessProtocolHandler.cs
- NTAccount.cs
- DataSourceCache.cs
- ClientData.cs
- FloaterParagraph.cs
- FileSystemInfo.cs
- RegistrySecurity.cs
- Pkcs7Recipient.cs
- WebFormsRootDesigner.cs
- TreeViewAutomationPeer.cs
- HttpServerVarsCollection.cs
- LogLogRecordHeader.cs
- SoapAttributes.cs
- CustomAttributeBuilder.cs
- AutomationAttributeInfo.cs
- JsonSerializer.cs
- XmlSchemaSequence.cs
- RegistrySecurity.cs
- ScopeCollection.cs
- ZipPackagePart.cs
- RectangleGeometry.cs
- XmlDataContract.cs
- Delay.cs
- SafeProcessHandle.cs
- ProtocolsConfigurationHandler.cs
- _DynamicWinsockMethods.cs
- IntAverageAggregationOperator.cs
- PersistChildrenAttribute.cs
- SecureStringHasher.cs
- CompilationUnit.cs
- SystemIPInterfaceProperties.cs
- ObjectView.cs
- LayoutUtils.cs
- SqlInternalConnection.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ReachDocumentPageSerializer.cs
- SqlNode.cs
- ToolBar.cs
- MessageContractAttribute.cs
- MenuCommandsChangedEventArgs.cs
- PriorityBinding.cs
- EntitySetBase.cs
- WindowsListViewItem.cs