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
- Rect3DConverter.cs
- ViewKeyConstraint.cs
- SqlServices.cs
- BuilderElements.cs
- StrokeCollection.cs
- CombinedGeometry.cs
- ExpressionParser.cs
- EnumerableRowCollectionExtensions.cs
- DataGridViewRowConverter.cs
- WindowsContainer.cs
- ProxyWebPartConnectionCollection.cs
- dsa.cs
- Panel.cs
- Assert.cs
- CallId.cs
- SchemaNamespaceManager.cs
- DataRowCollection.cs
- EntityConnectionStringBuilder.cs
- SystemResourceHost.cs
- XmlQueryStaticData.cs
- JavascriptXmlWriterWrapper.cs
- XmlExceptionHelper.cs
- PanelDesigner.cs
- Style.cs
- SQLCharsStorage.cs
- KnownTypesHelper.cs
- FileFormatException.cs
- LoginUtil.cs
- SelectedDatesCollection.cs
- MultipleViewProviderWrapper.cs
- StateMachineTimers.cs
- DataContext.cs
- DesignTimeValidationFeature.cs
- Helpers.cs
- OleDbCommandBuilder.cs
- SqlAliaser.cs
- OrderedDictionary.cs
- FormParameter.cs
- SqlRowUpdatedEvent.cs
- sqlinternaltransaction.cs
- XmlMembersMapping.cs
- CursorConverter.cs
- MultiTouchSystemGestureLogic.cs
- ObjectStateEntryDbDataRecord.cs
- SizeConverter.cs
- SearchForVirtualItemEventArgs.cs
- UnicastIPAddressInformationCollection.cs
- KeyedHashAlgorithm.cs
- SessionIDManager.cs
- CalendarAutomationPeer.cs
- ConfigXmlText.cs
- EmbeddedMailObject.cs
- QueryOutputWriter.cs
- PenLineJoinValidation.cs
- SelectionEditingBehavior.cs
- XmlSchemaCollection.cs
- AdapterDictionary.cs
- StylusTip.cs
- ContentHostHelper.cs
- XmlWriterSettings.cs
- SafeEventLogWriteHandle.cs
- SqlError.cs
- ContainsRowNumberChecker.cs
- TargetFrameworkUtil.cs
- AutomationPeer.cs
- TabControl.cs
- BinarySecretKeyIdentifierClause.cs
- HeaderLabel.cs
- BamlCollectionHolder.cs
- XmlSubtreeReader.cs
- ViewUtilities.cs
- FilterEventArgs.cs
- SignedXml.cs
- ArgumentFixer.cs
- ArglessEventHandlerProxy.cs
- Win32Exception.cs
- Aggregates.cs
- VectorAnimationUsingKeyFrames.cs
- BaseCAMarshaler.cs
- ColorConvertedBitmap.cs
- ActivityScheduledQuery.cs
- PassportAuthentication.cs
- DataRowIndexBuffer.cs
- CqlQuery.cs
- EmptyWorkItem.cs
- HtmlListAdapter.cs
- AutoSizeToolBoxItem.cs
- XhtmlBasicValidatorAdapter.cs
- AutomationPropertyInfo.cs
- Command.cs
- HwndStylusInputProvider.cs
- SerialPort.cs
- RegexFCD.cs
- TraceData.cs
- SqlSupersetValidator.cs
- CodeTypeMember.cs
- ContainerUIElement3D.cs
- ServiceInfo.cs
- ErrorHandlerModule.cs
- ZoneMembershipCondition.cs