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
- SaveFileDialog.cs
- ZipFileInfo.cs
- WindowsButton.cs
- ComponentEditorPage.cs
- KeyValuePairs.cs
- AuthorizationPolicyTypeElement.cs
- ComponentChangedEvent.cs
- SqlInfoMessageEvent.cs
- EditorZone.cs
- NavigationExpr.cs
- AttributeExtensions.cs
- DataGridPagingPage.cs
- IpcClientChannel.cs
- FrameworkEventSource.cs
- DetailsView.cs
- SecurityTokenRequirement.cs
- LinkArea.cs
- BamlResourceDeserializer.cs
- CroppedBitmap.cs
- EnumValAlphaComparer.cs
- ImpersonationOption.cs
- LambdaCompiler.Expressions.cs
- TypeDescriptorContext.cs
- SmtpException.cs
- WorkflowInstance.cs
- AutoSizeToolBoxItem.cs
- TableDetailsCollection.cs
- BodyWriter.cs
- GradientStop.cs
- BitmapEffect.cs
- CompilerErrorCollection.cs
- DataMisalignedException.cs
- GraphicsContext.cs
- EditingCommands.cs
- OleDbStruct.cs
- DictionarySurrogate.cs
- RectangleF.cs
- OleDbInfoMessageEvent.cs
- DispatchProxy.cs
- LookupNode.cs
- CacheDict.cs
- ContextStack.cs
- SharedStatics.cs
- TreeNodeStyle.cs
- SEHException.cs
- DocumentSequence.cs
- BaseDataListActionList.cs
- VirtualPathProvider.cs
- SolidColorBrush.cs
- HMACRIPEMD160.cs
- X509Certificate.cs
- Evaluator.cs
- SHA384Managed.cs
- ImageListDesigner.cs
- NamespaceCollection.cs
- SortDescription.cs
- BaseTemplatedMobileComponentEditor.cs
- OpenTypeCommon.cs
- TextSelectionHelper.cs
- DataGridViewCellCollection.cs
- SoapSchemaMember.cs
- SymbolType.cs
- QilBinary.cs
- PerformanceCounter.cs
- StateDesigner.cs
- GcHandle.cs
- Message.cs
- WebSysDescriptionAttribute.cs
- DataGridAutoFormatDialog.cs
- InstancePersistenceEvent.cs
- DateTimeConverter2.cs
- RoutedUICommand.cs
- ByteRangeDownloader.cs
- DPAPIProtectedConfigurationProvider.cs
- RecordManager.cs
- ReadOnlyDataSourceView.cs
- XmlSchemaGroupRef.cs
- PackageProperties.cs
- Interop.cs
- CollectionDataContract.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- XmlSortKeyAccumulator.cs
- MatrixTransform.cs
- CorrelationManager.cs
- SymDocumentType.cs
- PnrpPermission.cs
- SymmetricAlgorithm.cs
- Size.cs
- ActivityDesignerHighlighter.cs
- DetailsViewUpdateEventArgs.cs
- FileDialogCustomPlace.cs
- SingleKeyFrameCollection.cs
- BindToObject.cs
- DirectoryGroupQuery.cs
- CollectionsUtil.cs
- SrgsGrammarCompiler.cs
- UserInitiatedNavigationPermission.cs
- DataGridViewBand.cs
- EnvironmentPermission.cs
- ThicknessAnimation.cs