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
- ServiceModelReg.cs
- BadImageFormatException.cs
- GeneralTransform.cs
- XamlToRtfParser.cs
- ClassValidator.cs
- DynamicValidatorEventArgs.cs
- Literal.cs
- ConvertersCollection.cs
- InvalidateEvent.cs
- DropShadowEffect.cs
- DataBindingsDialog.cs
- assertwrapper.cs
- InputReferenceExpression.cs
- Label.cs
- Block.cs
- ConfigurationManagerInternalFactory.cs
- ParseHttpDate.cs
- ConnectionOrientedTransportChannelFactory.cs
- RtfToXamlReader.cs
- ClientFormsAuthenticationMembershipProvider.cs
- FixUpCollection.cs
- TextTrailingCharacterEllipsis.cs
- SQLUtility.cs
- ServiceDesigner.cs
- __TransparentProxy.cs
- ContainerControl.cs
- FormatterConverter.cs
- DesignerActionVerbList.cs
- TraversalRequest.cs
- NamedServiceModelExtensionCollectionElement.cs
- TextReader.cs
- SiteMap.cs
- EntityClientCacheKey.cs
- SqlConnectionStringBuilder.cs
- PropertyInformation.cs
- MultiBindingExpression.cs
- InputLanguageCollection.cs
- StreamUpdate.cs
- SqlGatherProducedAliases.cs
- FeatureSupport.cs
- SoapWriter.cs
- DelayedRegex.cs
- PlatformCulture.cs
- WebPartEventArgs.cs
- XmlBoundElement.cs
- RadialGradientBrush.cs
- _Win32.cs
- DataGridCommandEventArgs.cs
- UdpContractFilterBehavior.cs
- NamedObject.cs
- JsonReaderDelegator.cs
- InputChannelBinder.cs
- InternalTypeHelper.cs
- ToolboxDataAttribute.cs
- TreeIterator.cs
- XPathNodeInfoAtom.cs
- SafeSecurityHandles.cs
- ToolStripItemTextRenderEventArgs.cs
- IDQuery.cs
- BamlResourceContent.cs
- ExpressionHelper.cs
- ProcessModule.cs
- DataGridViewElement.cs
- LongValidator.cs
- ToolboxCategory.cs
- ObjectStorage.cs
- WriterOutput.cs
- ThicknessKeyFrameCollection.cs
- Set.cs
- MetadataFile.cs
- StdValidatorsAndConverters.cs
- RelationshipManager.cs
- SelectionRange.cs
- Speller.cs
- TransformerConfigurationWizardBase.cs
- UIElementHelper.cs
- ContractListAdapter.cs
- dtdvalidator.cs
- DbParameterHelper.cs
- MatrixKeyFrameCollection.cs
- MemoryRecordBuffer.cs
- PrivateFontCollection.cs
- RemotingAttributes.cs
- OutgoingWebRequestContext.cs
- VisualStyleElement.cs
- BaseUriHelper.cs
- EditingCoordinator.cs
- Int32AnimationUsingKeyFrames.cs
- login.cs
- LogExtentCollection.cs
- ConnectionStringsExpressionBuilder.cs
- Convert.cs
- ElementUtil.cs
- Popup.cs
- MobileControlDesigner.cs
- BidPrivateBase.cs
- AsymmetricSignatureFormatter.cs
- XmlReader.cs
- DataGridColumnCollection.cs
- OneOfScalarConst.cs