Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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 internal class QilUnary : QilNode { private QilNode child; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilUnary(QilNodeType nodeType, QilNode child) : base(nodeType) { this.child = child; } //----------------------------------------------- // IListmethods -- 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 internal class QilUnary : QilNode { private QilNode child; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilUnary(QilNodeType nodeType, QilNode child) : base(nodeType) { this.child = child; } //----------------------------------------------- // IListmethods -- 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
- PermissionRequestEvidence.cs
- SqlFlattener.cs
- OracleDateTime.cs
- AutoCompleteStringCollection.cs
- FilteredDataSetHelper.cs
- RegistrySecurity.cs
- ArraySet.cs
- PackageRelationshipCollection.cs
- DataRowIndexBuffer.cs
- BuilderPropertyEntry.cs
- XmlQueryOutput.cs
- PerformanceCounterPermissionEntry.cs
- DataServiceConfiguration.cs
- CreateUserErrorEventArgs.cs
- GlobalEventManager.cs
- FontStyles.cs
- XmlAttributeAttribute.cs
- ObjectParameterCollection.cs
- ComboBox.cs
- DocumentPageViewAutomationPeer.cs
- MessagingDescriptionAttribute.cs
- ErrorStyle.cs
- ArrayTypeMismatchException.cs
- SignedInfo.cs
- ToolStripRenderEventArgs.cs
- SqlDeflator.cs
- InvalidAsynchronousStateException.cs
- ObjectQueryProvider.cs
- StylusShape.cs
- filewebrequest.cs
- SmiConnection.cs
- TextDpi.cs
- DataGridState.cs
- GraphicsContext.cs
- FragmentNavigationEventArgs.cs
- BrowserCapabilitiesCodeGenerator.cs
- RoleManagerModule.cs
- PictureBox.cs
- ApplicationHost.cs
- Panel.cs
- RSAPKCS1SignatureDeformatter.cs
- ApplicationActivator.cs
- MSAAWinEventWrap.cs
- processwaithandle.cs
- PartialCachingAttribute.cs
- DesignTimeVisibleAttribute.cs
- SizeKeyFrameCollection.cs
- XPathNodeList.cs
- XamlInt32CollectionSerializer.cs
- ExpressionBuilderCollection.cs
- XmlObjectSerializerReadContextComplex.cs
- WebResponse.cs
- Stream.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- HistoryEventArgs.cs
- CommunicationObjectAbortedException.cs
- SemanticResultKey.cs
- TransportBindingElementImporter.cs
- VectorCollectionValueSerializer.cs
- CompoundFileStorageReference.cs
- Viewport3DVisual.cs
- CompilerWrapper.cs
- HebrewNumber.cs
- MenuItemCollectionEditorDialog.cs
- LayoutUtils.cs
- HtmlTitle.cs
- ImageUrlEditor.cs
- HttpNamespaceReservationInstallComponent.cs
- MethodSignatureGenerator.cs
- TextDocumentView.cs
- DrawingState.cs
- CodeMemberEvent.cs
- Matrix3DConverter.cs
- SqlWebEventProvider.cs
- Span.cs
- ExpressionPrefixAttribute.cs
- PartitionResolver.cs
- DbExpressionRules.cs
- SafeSystemMetrics.cs
- GeneralTransform2DTo3D.cs
- ExpressionPrinter.cs
- ElementProxy.cs
- InternalConfigEventArgs.cs
- MouseBinding.cs
- CLRBindingWorker.cs
- Trustee.cs
- SlipBehavior.cs
- Form.cs
- _CommandStream.cs
- RequestCachePolicyConverter.cs
- PageVisual.cs
- TextRenderer.cs
- HoistedLocals.cs
- Util.cs
- MeasureItemEvent.cs
- ResourceDefaultValueAttribute.cs
- AliasGenerator.cs
- ChangeConflicts.cs
- ObjectKeyFrameCollection.cs
- Journal.cs