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
- PrivilegedConfigurationManager.cs
- RadioButtonDesigner.cs
- EntityContainerRelationshipSet.cs
- DetailsViewInsertEventArgs.cs
- PageSetupDialog.cs
- CursorInteropHelper.cs
- smtpconnection.cs
- Image.cs
- TrustLevel.cs
- UrlSyndicationContent.cs
- ProfilePropertyMetadata.cs
- InputProcessorProfiles.cs
- SelectedDatesCollection.cs
- HWStack.cs
- BinaryNode.cs
- WindowClosedEventArgs.cs
- hresults.cs
- RepeatBehaviorConverter.cs
- BatchStream.cs
- PathFigureCollection.cs
- QueryExtender.cs
- TCPListener.cs
- StringDictionaryWithComparer.cs
- OpenFileDialog.cs
- GridViewDeleteEventArgs.cs
- Decorator.cs
- StyleModeStack.cs
- ContractBase.cs
- ByteKeyFrameCollection.cs
- MediaSystem.cs
- Zone.cs
- StreamGeometry.cs
- HtmlInputRadioButton.cs
- StylusPlugInCollection.cs
- HtmlFormParameterReader.cs
- MethodBody.cs
- FormsAuthenticationTicket.cs
- OutKeywords.cs
- RelationshipConstraintValidator.cs
- BlockCollection.cs
- XmlEntity.cs
- EventWaitHandle.cs
- SystemNetworkInterface.cs
- TableDetailsRow.cs
- RenderTargetBitmap.cs
- PersonalizablePropertyEntry.cs
- Win32Exception.cs
- ProcessStartInfo.cs
- activationcontext.cs
- ImageSource.cs
- DataPagerCommandEventArgs.cs
- FlowSwitch.cs
- pingexception.cs
- Descriptor.cs
- TemplateBindingExtensionConverter.cs
- XmlHierarchicalDataSourceView.cs
- BitmapFrameEncode.cs
- _SafeNetHandles.cs
- HashCodeCombiner.cs
- Win32Exception.cs
- ToolStripDropDownMenu.cs
- ByteStream.cs
- uribuilder.cs
- ProgressBarBrushConverter.cs
- GregorianCalendarHelper.cs
- BitmapEffectInputConnector.cs
- TextBreakpoint.cs
- SettingsPropertyNotFoundException.cs
- CurrencyManager.cs
- WmpBitmapDecoder.cs
- StrongNameIdentityPermission.cs
- SqlMultiplexer.cs
- KeyGestureConverter.cs
- SystemIPInterfaceStatistics.cs
- Lasso.cs
- RectangleConverter.cs
- ResponseStream.cs
- DataKeyCollection.cs
- CardSpaceException.cs
- QuaternionRotation3D.cs
- Int64KeyFrameCollection.cs
- ActivityExecutionContext.cs
- Operator.cs
- _HeaderInfoTable.cs
- PageEventArgs.cs
- ToolboxItemLoader.cs
- CheckBoxRenderer.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- EntityPropertyMappingAttribute.cs
- OleTxTransaction.cs
- PerfCounterSection.cs
- MsmqIntegrationChannelFactory.cs
- CachedPathData.cs
- TextTreeTextBlock.cs
- CodeIterationStatement.cs
- ArraySubsetEnumerator.cs
- UTF7Encoding.cs
- IDataContractSurrogate.cs
- ReferenceEqualityComparer.cs
- ComboBoxItem.cs