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
- SplashScreenNativeMethods.cs
- GenerateHelper.cs
- SecureEnvironment.cs
- BinaryReader.cs
- BufferBuilder.cs
- HtmlControlAdapter.cs
- TypeLibConverter.cs
- EntityUtil.cs
- DataSysAttribute.cs
- WindowsPen.cs
- DataPagerField.cs
- TextSyndicationContentKindHelper.cs
- BindToObject.cs
- Viewport3DAutomationPeer.cs
- CharAnimationUsingKeyFrames.cs
- WebRequestModulesSection.cs
- XPathNavigator.cs
- SecurityCriticalDataForSet.cs
- ToolStripPanelRow.cs
- CompositeKey.cs
- TextRangeEditTables.cs
- RectAnimationClockResource.cs
- Trustee.cs
- WindowsListViewItemCheckBox.cs
- LockRecoveryTask.cs
- Bidi.cs
- TargetInvocationException.cs
- WorkflowElementDialog.cs
- Parameter.cs
- File.cs
- StreamAsIStream.cs
- EncodingInfo.cs
- ColorBlend.cs
- NominalTypeEliminator.cs
- ContentFilePart.cs
- CallSiteOps.cs
- SolidBrush.cs
- TokenCreationParameter.cs
- ConfigXmlSignificantWhitespace.cs
- CodeDomDesignerLoader.cs
- CreationContext.cs
- StateWorkerRequest.cs
- ZipPackagePart.cs
- PolicyLevel.cs
- DataBindingCollectionConverter.cs
- NativeCompoundFileAPIs.cs
- ContentElementAutomationPeer.cs
- ClientBuildManager.cs
- KerberosSecurityTokenAuthenticator.cs
- BindingGraph.cs
- BatchStream.cs
- PagesChangedEventArgs.cs
- IdentifierCollection.cs
- SystemDiagnosticsSection.cs
- TextCharacters.cs
- MembershipPasswordException.cs
- SafeCoTaskMem.cs
- ConnectionManagementElement.cs
- TextServicesCompartment.cs
- PolicyManager.cs
- Parser.cs
- VectorCollectionValueSerializer.cs
- AnnotationObservableCollection.cs
- ProfileModule.cs
- XmlTextEncoder.cs
- EventPropertyMap.cs
- Number.cs
- QueryProcessor.cs
- PropertyInformation.cs
- ObjectNavigationPropertyMapping.cs
- ComponentManagerBroker.cs
- ThreadExceptionDialog.cs
- FormatterConverter.cs
- StrokeNodeData.cs
- SamlAuthorizationDecisionClaimResource.cs
- MdiWindowListStrip.cs
- HttpCacheParams.cs
- XPathDocumentIterator.cs
- DesignerUtils.cs
- VerticalAlignConverter.cs
- TextRangeAdaptor.cs
- DSGeneratorProblem.cs
- EditorPart.cs
- UserControlCodeDomTreeGenerator.cs
- CheckBox.cs
- FilterElement.cs
- DataBoundControlHelper.cs
- Attributes.cs
- Compiler.cs
- TableColumn.cs
- BinaryObjectWriter.cs
- DefaultDialogButtons.cs
- XmlLanguageConverter.cs
- TextElement.cs
- FlowDocumentView.cs
- DispatchWrapper.cs
- ListSortDescriptionCollection.cs
- WindowsAuthenticationModule.cs
- ResourcePermissionBaseEntry.cs
- MetadataSource.cs