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
- CheckBoxRenderer.cs
- DragDrop.cs
- BorderGapMaskConverter.cs
- BoundsDrawingContextWalker.cs
- DataBindingHandlerAttribute.cs
- KeyPressEvent.cs
- DropAnimation.xaml.cs
- PersonalizationState.cs
- RawTextInputReport.cs
- CurrentChangingEventArgs.cs
- InternalConfigRoot.cs
- CompilerGeneratedAttribute.cs
- AccessDataSourceDesigner.cs
- EncryptedPackageFilter.cs
- XPathAncestorIterator.cs
- SecurityKeyEntropyMode.cs
- EntityKey.cs
- TypeBinaryExpression.cs
- TableRowGroupCollection.cs
- MessageQueueEnumerator.cs
- PreviewPrintController.cs
- IisTraceListener.cs
- ReadOnlyObservableCollection.cs
- documentsequencetextview.cs
- InstancePersistenceCommand.cs
- NodeLabelEditEvent.cs
- DeviceContexts.cs
- LinqDataView.cs
- InfoCardXmlSerializer.cs
- ExtendedTransformFactory.cs
- OracleConnectionString.cs
- SerializerDescriptor.cs
- TemplateBuilder.cs
- InstanceDescriptor.cs
- StandardRuntimeEnumValidator.cs
- AmbientEnvironment.cs
- CustomValidator.cs
- MetadataArtifactLoader.cs
- ReflectTypeDescriptionProvider.cs
- EventTrigger.cs
- DataBindEngine.cs
- XamlVector3DCollectionSerializer.cs
- SqlDataSourceRefreshSchemaForm.cs
- SmtpClient.cs
- FeatureSupport.cs
- WindowsListViewScroll.cs
- ConsumerConnectionPoint.cs
- SimpleMailWebEventProvider.cs
- VisualBrush.cs
- mil_sdk_version.cs
- HandlerFactoryCache.cs
- LayoutEditorPart.cs
- Sql8ExpressionRewriter.cs
- DesignerSerializerAttribute.cs
- IODescriptionAttribute.cs
- SqlExpander.cs
- AdditionalEntityFunctions.cs
- HandleRef.cs
- followingquery.cs
- IteratorDescriptor.cs
- ElementHostPropertyMap.cs
- UInt64.cs
- HtmlInputText.cs
- UnsafeNativeMethodsTablet.cs
- HebrewCalendar.cs
- X509CertificateRecipientClientCredential.cs
- ToolStripDropDownItemDesigner.cs
- TemplateField.cs
- ReflectionHelper.cs
- Persist.cs
- ScrollViewer.cs
- ReadOnlyHierarchicalDataSourceView.cs
- FontDialog.cs
- WebPartTracker.cs
- Converter.cs
- ZipIORawDataFileBlock.cs
- HttpApplicationFactory.cs
- OracleConnectionFactory.cs
- CheckBox.cs
- SizeAnimationClockResource.cs
- TreeNodeMouseHoverEvent.cs
- CharAnimationUsingKeyFrames.cs
- WebPartMenuStyle.cs
- TextElementAutomationPeer.cs
- RegisteredDisposeScript.cs
- HttpVersion.cs
- EncoderFallback.cs
- ButtonColumn.cs
- ConnectionStringsExpressionBuilder.cs
- EditBehavior.cs
- DataRow.cs
- TextBoxView.cs
- XmlCollation.cs
- ElementProxy.cs
- SuppressMergeCheckAttribute.cs
- SqlFileStream.cs
- QueryRewriter.cs
- LinearGradientBrush.cs
- PropVariant.cs
- ActiveDocumentEvent.cs