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
- EnumerableRowCollectionExtensions.cs
- TextServicesCompartment.cs
- BinaryKeyIdentifierClause.cs
- TextTreeText.cs
- EdmFunctionAttribute.cs
- CommonGetThemePartSize.cs
- ExternalCalls.cs
- CodeVariableReferenceExpression.cs
- ObjectItemConventionAssemblyLoader.cs
- Image.cs
- DataSourceCollectionBase.cs
- ProfileParameter.cs
- Debug.cs
- RepeatBehavior.cs
- HorizontalAlignConverter.cs
- JsonServiceDocumentSerializer.cs
- VirtualPathUtility.cs
- COM2ExtendedBrowsingHandler.cs
- BrowserDefinitionCollection.cs
- FormClosingEvent.cs
- FormsAuthenticationConfiguration.cs
- DbBuffer.cs
- ProcessInputEventArgs.cs
- ParagraphVisual.cs
- HandlerBase.cs
- DataSourceViewSchemaConverter.cs
- GradientBrush.cs
- TextDecorations.cs
- EventListener.cs
- EntityDescriptor.cs
- MatrixUtil.cs
- GridView.cs
- listitem.cs
- NameSpaceEvent.cs
- DataGridViewComboBoxColumn.cs
- RelationshipFixer.cs
- FormViewInsertedEventArgs.cs
- DynamicResourceExtension.cs
- COM2TypeInfoProcessor.cs
- CellIdBoolean.cs
- SqlDependency.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- WebPartCatalogAddVerb.cs
- UniqueEventHelper.cs
- ZipIOLocalFileDataDescriptor.cs
- TdsParserHelperClasses.cs
- XamlFxTrace.cs
- MergeFilterQuery.cs
- SqlException.cs
- XmlSchemaRedefine.cs
- WebPartUtil.cs
- DataGridPagerStyle.cs
- Input.cs
- RubberbandSelector.cs
- FastEncoder.cs
- DataTemplateSelector.cs
- Matrix3DValueSerializer.cs
- PageAsyncTask.cs
- PointAnimationClockResource.cs
- validationstate.cs
- BookmarkInfo.cs
- OleServicesContext.cs
- XmlFormatExtensionAttribute.cs
- BitmapInitialize.cs
- WaitHandleCannotBeOpenedException.cs
- SevenBitStream.cs
- RSAProtectedConfigurationProvider.cs
- InitializationEventAttribute.cs
- TextEditorSpelling.cs
- ContextBase.cs
- DSASignatureDeformatter.cs
- Size.cs
- TreeBuilderXamlTranslator.cs
- SafeHandle.cs
- ColumnWidthChangedEvent.cs
- WindowsRebar.cs
- CommandLibraryHelper.cs
- XmlSerializerFactory.cs
- GeometryModel3D.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- DefaultMemberAttribute.cs
- PermissionRequestEvidence.cs
- WebPartPersonalization.cs
- FontSourceCollection.cs
- RegistryPermission.cs
- BooleanExpr.cs
- PermissionListSet.cs
- SystemResources.cs
- CubicEase.cs
- ResourceAttributes.cs
- DocumentEventArgs.cs
- EdmItemError.cs
- HttpModuleAction.cs
- SQLRoleProvider.cs
- RangeBaseAutomationPeer.cs
- CharKeyFrameCollection.cs
- CompressEmulationStream.cs
- DesignerSerializationOptionsAttribute.cs
- PathTooLongException.cs
- diagnosticsswitches.cs