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
- TransformerInfoCollection.cs
- LineGeometry.cs
- DesignTimeParseData.cs
- LayoutDump.cs
- MultiDataTrigger.cs
- CustomError.cs
- ViewKeyConstraint.cs
- mongolianshape.cs
- WebPartManager.cs
- StreamResourceInfo.cs
- SiblingIterators.cs
- MachineSettingsSection.cs
- DataGridView.cs
- UserValidatedEventArgs.cs
- _HelperAsyncResults.cs
- TemplateKey.cs
- Baml2006ReaderContext.cs
- NaturalLanguageHyphenator.cs
- TypefaceMetricsCache.cs
- WinEventQueueItem.cs
- MediaPlayer.cs
- SelectionWordBreaker.cs
- OSEnvironmentHelper.cs
- PeerNameRegistration.cs
- SqlCachedBuffer.cs
- pingexception.cs
- StatusBarDesigner.cs
- FreezableCollection.cs
- XPathChildIterator.cs
- Tablet.cs
- Primitive.cs
- Base64Encoder.cs
- ConfigXmlElement.cs
- BooleanAnimationUsingKeyFrames.cs
- TextSyndicationContent.cs
- XmlStreamStore.cs
- VirtualPathUtility.cs
- XmlSchemaSimpleContentRestriction.cs
- SettingsContext.cs
- RemotingConfigParser.cs
- NotifyCollectionChangedEventArgs.cs
- AutomationPattern.cs
- FontSizeConverter.cs
- Tuple.cs
- SystemFonts.cs
- StringUtil.cs
- PeerInputChannel.cs
- ApplicationHost.cs
- DES.cs
- CornerRadius.cs
- TreeNodeBindingCollection.cs
- PagedDataSource.cs
- QueryCacheManager.cs
- ScrollEvent.cs
- UncommonField.cs
- DateTimeOffsetStorage.cs
- FieldNameLookup.cs
- QueryOperatorEnumerator.cs
- Constant.cs
- SignatureSummaryDialog.cs
- MessageFilterTable.cs
- ViewCellRelation.cs
- WebPartTransformerAttribute.cs
- ActivityTypeResolver.xaml.cs
- SelectionEditingBehavior.cs
- BaseCodePageEncoding.cs
- HttpsHostedTransportConfiguration.cs
- DbConnectionStringBuilder.cs
- QueryConverter.cs
- SpeechSeg.cs
- DataControlButton.cs
- RSAPKCS1SignatureDeformatter.cs
- SinglePageViewer.cs
- BindValidationContext.cs
- PageCodeDomTreeGenerator.cs
- XmlSchemaSimpleContent.cs
- SqlTriggerAttribute.cs
- WizardStepCollectionEditor.cs
- SinglePhaseEnlistment.cs
- RadialGradientBrush.cs
- SqlParameter.cs
- ActivityExecutor.cs
- IOException.cs
- TriState.cs
- AttributeCollection.cs
- DbModificationClause.cs
- TTSEngineProxy.cs
- SqlComparer.cs
- Helper.cs
- ADRoleFactory.cs
- SourceFileBuildProvider.cs
- MultiByteCodec.cs
- XPathNodeIterator.cs
- controlskin.cs
- WebPartMenuStyle.cs
- RtfFormatStack.cs
- CommentEmitter.cs
- SqlRecordBuffer.cs
- CodeGroup.cs
- ContainerParaClient.cs