Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- BooleanConverter.cs
- MergeFailedEvent.cs
- TypeExtension.cs
- MeasureData.cs
- EncoderFallback.cs
- GreenMethods.cs
- ComponentEditorPage.cs
- CorrelationService.cs
- cryptoapiTransform.cs
- ProfileGroupSettings.cs
- MessageCredentialType.cs
- LogRecordSequence.cs
- ContentHostHelper.cs
- ToolStripControlHost.cs
- TypeElement.cs
- WindowHelperService.cs
- WebControl.cs
- DropDownButton.cs
- Stacktrace.cs
- EncoderNLS.cs
- XmlSchemaComplexContent.cs
- SpAudioStreamWrapper.cs
- HtmlSelectionListAdapter.cs
- Rect3DConverter.cs
- GetPageNumberCompletedEventArgs.cs
- RequestCachePolicy.cs
- WebPartEventArgs.cs
- TimerElapsedEvenArgs.cs
- AuthorizationRule.cs
- DataBoundControl.cs
- BaseTransportHeaders.cs
- Msec.cs
- Nullable.cs
- Timeline.cs
- ObjectSet.cs
- DbException.cs
- InstanceLockLostException.cs
- WebPartActionVerb.cs
- ClientUtils.cs
- XmlIncludeAttribute.cs
- ChannelTokenTypeConverter.cs
- SystemUnicastIPAddressInformation.cs
- ViewBase.cs
- FixedElement.cs
- PageAsyncTaskManager.cs
- ArcSegment.cs
- ColumnResizeUndoUnit.cs
- isolationinterop.cs
- VSWCFServiceContractGenerator.cs
- DrawToolTipEventArgs.cs
- FirewallWrapper.cs
- LinqMaximalSubtreeNominator.cs
- Menu.cs
- SQLDateTimeStorage.cs
- StateChangeEvent.cs
- StylusPointPropertyId.cs
- SerialPinChanges.cs
- PrintingPermissionAttribute.cs
- TextRangeEdit.cs
- ZipIOExtraFieldElement.cs
- ObjectHandle.cs
- Vector3DCollection.cs
- PanelDesigner.cs
- CodeMethodReturnStatement.cs
- SystemParameters.cs
- ControlCollection.cs
- ThicknessKeyFrameCollection.cs
- TabRenderer.cs
- Binding.cs
- PageCodeDomTreeGenerator.cs
- BehaviorEditorPart.cs
- WebPartUserCapability.cs
- configsystem.cs
- AttributeQuery.cs
- Grant.cs
- SerializationFieldInfo.cs
- Utility.cs
- ObjectRef.cs
- XmlUtil.cs
- Queue.cs
- grammarelement.cs
- SqlUDTStorage.cs
- SpecularMaterial.cs
- Token.cs
- CodeExpressionStatement.cs
- BaseParagraph.cs
- CodeStatement.cs
- ScriptIgnoreAttribute.cs
- OracleDataReader.cs
- TextEditorParagraphs.cs
- _AcceptOverlappedAsyncResult.cs
- DataList.cs
- xml.cs
- CompilerScope.Storage.cs
- PartialList.cs
- XPathMessageContext.cs
- ColorConverter.cs
- XmlNodeChangedEventManager.cs
- NamespaceCollection.cs
- NativeMethods.cs