Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TargetInvocationException.cs
- SqlFunctionAttribute.cs
- FormClosedEvent.cs
- DateTimeOffsetConverter.cs
- HighContrastHelper.cs
- BitVec.cs
- TraceRecords.cs
- ToolStripItemTextRenderEventArgs.cs
- ConditionalAttribute.cs
- ConfigXmlComment.cs
- CheckableControlBaseAdapter.cs
- WindowsFormsSectionHandler.cs
- ThemeDirectoryCompiler.cs
- TimeoutConverter.cs
- PageVisual.cs
- Classification.cs
- WindowsListViewGroupHelper.cs
- IPGlobalProperties.cs
- SystemIPGlobalProperties.cs
- FontInfo.cs
- CheckBox.cs
- ArrayHelper.cs
- BamlResourceSerializer.cs
- SessionStateItemCollection.cs
- PartitionResolver.cs
- _NestedSingleAsyncResult.cs
- ProfileGroupSettingsCollection.cs
- SchemaSetCompiler.cs
- GradientStopCollection.cs
- EntityTemplateUserControl.cs
- EncoderParameters.cs
- DelayLoadType.cs
- querybuilder.cs
- BindingExpression.cs
- EntryIndex.cs
- LocalizableAttribute.cs
- DockPanel.cs
- TextTrailingWordEllipsis.cs
- PropertyFilterAttribute.cs
- SharedPersonalizationStateInfo.cs
- DescendantQuery.cs
- PickBranchDesigner.xaml.cs
- ObjectItemConventionAssemblyLoader.cs
- DateTimeConstantAttribute.cs
- ClientTargetSection.cs
- ClientConfigurationSystem.cs
- RelativeSource.cs
- GridViewSortEventArgs.cs
- NonSerializedAttribute.cs
- XPathMessageFilter.cs
- XmlHierarchicalEnumerable.cs
- AssemblyResolver.cs
- AutomationPattern.cs
- CodeCatchClause.cs
- ConstructorBuilder.cs
- ContainerUtilities.cs
- EnumMemberAttribute.cs
- ProfileInfo.cs
- Single.cs
- PeerPresenceInfo.cs
- Partitioner.cs
- WebEvents.cs
- InputScope.cs
- xmlglyphRunInfo.cs
- ResourceKey.cs
- PartialCachingAttribute.cs
- SpeechDetectedEventArgs.cs
- ProfileSettingsCollection.cs
- ArraySubsetEnumerator.cs
- HttpWebResponse.cs
- DocumentViewer.cs
- AtomMaterializer.cs
- QueryCacheManager.cs
- RegexCompiler.cs
- Set.cs
- ModuleConfigurationInfo.cs
- SystemColorTracker.cs
- SchemaAttDef.cs
- RuntimeVariablesExpression.cs
- SystemColors.cs
- FixedSOMTableCell.cs
- FaultBookmark.cs
- DataGridColumnCollection.cs
- ConstraintManager.cs
- XmlIlTypeHelper.cs
- DefaultValueAttribute.cs
- ByeOperation11AsyncResult.cs
- EventManager.cs
- XmlSerializer.cs
- TableColumnCollection.cs
- UdpDuplexChannel.cs
- MultipleViewPatternIdentifiers.cs
- DebugView.cs
- BasicViewGenerator.cs
- CipherData.cs
- FormParameter.cs
- DateTimeOffset.cs
- GeometryModel3D.cs
- QilExpression.cs
- XhtmlBasicObjectListAdapter.cs