Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilUnary.cs / 1305376 / 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
- HorizontalAlignConverter.cs
- ApplicationException.cs
- DiscoveryEndpointElement.cs
- CapabilitiesUse.cs
- HtmlDocument.cs
- RemoteHelper.cs
- DebugView.cs
- XmlValidatingReaderImpl.cs
- PageContentCollection.cs
- BuildProviderUtils.cs
- DataServiceStreamResponse.cs
- MenuItem.cs
- UrlPath.cs
- SourceFileBuildProvider.cs
- InputMethodStateChangeEventArgs.cs
- SQlBooleanStorage.cs
- Dump.cs
- DisplayInformation.cs
- ExpressionList.cs
- Hex.cs
- PagedDataSource.cs
- EntityTransaction.cs
- LocalServiceSecuritySettingsElement.cs
- SimpleTextLine.cs
- SvcMapFileLoader.cs
- DataControlField.cs
- Base64Encoder.cs
- ParagraphVisual.cs
- ToolStripLabel.cs
- keycontainerpermission.cs
- UserControl.cs
- WindowsHyperlink.cs
- ZeroOpNode.cs
- nulltextcontainer.cs
- QueryTask.cs
- LayoutSettings.cs
- GroupBoxRenderer.cs
- CustomPopupPlacement.cs
- HttpClientCertificate.cs
- DbExpressionRules.cs
- XmlMessageFormatter.cs
- AxisAngleRotation3D.cs
- ListViewSelectEventArgs.cs
- RecordManager.cs
- ProxyManager.cs
- DynamicScriptObject.cs
- FlowLayout.cs
- MessageBodyDescription.cs
- CursorConverter.cs
- XmlHelper.cs
- ScriptingSectionGroup.cs
- NavigationHelper.cs
- ProbeMatchesMessage11.cs
- SegmentInfo.cs
- WeakReference.cs
- FrameworkObject.cs
- ModelEditingScope.cs
- XdrBuilder.cs
- _AutoWebProxyScriptHelper.cs
- TextServicesCompartmentEventSink.cs
- GenericUriParser.cs
- TerminateWorkflow.cs
- SqlClientMetaDataCollectionNames.cs
- ResXDataNode.cs
- Aggregates.cs
- DocumentPageHost.cs
- DataShape.cs
- XmlBindingWorker.cs
- WebControlAdapter.cs
- PropertyPathConverter.cs
- XmlSchemaProviderAttribute.cs
- ContentDisposition.cs
- GPPOINTF.cs
- DataFieldConverter.cs
- ApplicationBuildProvider.cs
- CacheMemory.cs
- ResourceProviderFactory.cs
- WindowsButton.cs
- XmlResolver.cs
- ProxyGenerator.cs
- ServiceMetadataContractBehavior.cs
- DataListDesigner.cs
- UrlUtility.cs
- InvokeWebService.cs
- DocumentReference.cs
- ObjectFullSpanRewriter.cs
- DesignerSerializationOptionsAttribute.cs
- Transform.cs
- XmlSerializationReader.cs
- _BufferOffsetSize.cs
- ArraySortHelper.cs
- ResourceType.cs
- DoubleLinkListEnumerator.cs
- GeneralTransform2DTo3D.cs
- EnumerableCollectionView.cs
- MediaTimeline.cs
- PriorityChain.cs
- DragDropHelper.cs
- TransformerTypeCollection.cs
- OptimalBreakSession.cs