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
- UInt64.cs
- ConstraintEnumerator.cs
- FormatConvertedBitmap.cs
- PageContent.cs
- DecoderFallbackWithFailureFlag.cs
- FastPropertyAccessor.cs
- HttpSessionStateWrapper.cs
- NativeMethods.cs
- ScriptDescriptor.cs
- XmlSchemaComplexContent.cs
- ActivityAction.cs
- DateTimeSerializationSection.cs
- DataPager.cs
- Condition.cs
- LoginViewDesigner.cs
- XmlChildEnumerator.cs
- MetadataException.cs
- GacUtil.cs
- XsltSettings.cs
- SimpleRecyclingCache.cs
- JoinTreeNode.cs
- DllNotFoundException.cs
- LockedBorderGlyph.cs
- ResourceAssociationSet.cs
- DataConnectionHelper.cs
- Query.cs
- UnsafeNativeMethods.cs
- ToolStripRendererSwitcher.cs
- Baml2006SchemaContext.cs
- XmlObjectSerializerReadContextComplexJson.cs
- DateTimeOffsetAdapter.cs
- InputElement.cs
- SerializationException.cs
- RecipientIdentity.cs
- Line.cs
- CellParaClient.cs
- ToolStripDropDownButton.cs
- GraphicsContext.cs
- QueuePathEditor.cs
- ResourceProviderFactory.cs
- FaultReason.cs
- ProcessModuleCollection.cs
- TextDecorations.cs
- IDQuery.cs
- ObjectDataProvider.cs
- ImageAutomationPeer.cs
- DiagnosticStrings.cs
- GridViewDeleteEventArgs.cs
- SiteMapNodeItem.cs
- TdsParserSafeHandles.cs
- LoginView.cs
- Floater.cs
- CacheEntry.cs
- InvalidCommandTreeException.cs
- EnumConverter.cs
- Vector.cs
- HighlightComponent.cs
- WarningException.cs
- CanExecuteRoutedEventArgs.cs
- CodeMethodInvokeExpression.cs
- SafeProcessHandle.cs
- HScrollBar.cs
- DecoratedNameAttribute.cs
- LocatorPartList.cs
- CharUnicodeInfo.cs
- ExpressionTextBox.xaml.cs
- AnnotationResourceCollection.cs
- QueryOptionExpression.cs
- ServiceOperationWrapper.cs
- GridViewSortEventArgs.cs
- SingleSelectRootGridEntry.cs
- ObjectStateManagerMetadata.cs
- SqlDataSourceView.cs
- UnsafeNativeMethods.cs
- XPathAncestorIterator.cs
- AssemblyName.cs
- arclist.cs
- KeyedCollection.cs
- ProcessHostMapPath.cs
- ConnectionManagementElementCollection.cs
- InvalidAsynchronousStateException.cs
- recordstatefactory.cs
- Color.cs
- CustomValidator.cs
- BufferedGraphics.cs
- EditingMode.cs
- WindowsListBox.cs
- ContextMenuStrip.cs
- CursorConverter.cs
- MailDefinition.cs
- KerberosSecurityTokenAuthenticator.cs
- Partitioner.cs
- OpCodes.cs
- InkCanvasInnerCanvas.cs
- PageCodeDomTreeGenerator.cs
- FileVersionInfo.cs
- MenuItem.cs
- ECDiffieHellmanCng.cs
- AccessControlList.cs
- HotSpot.cs