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
- TransformCollection.cs
- ProcessInfo.cs
- ExpressionBuilderContext.cs
- Image.cs
- OracleInfoMessageEventArgs.cs
- SoapReflector.cs
- DetailsViewCommandEventArgs.cs
- prefixendpointaddressmessagefiltertable.cs
- PerfProviderCollection.cs
- SqlInternalConnectionTds.cs
- DataGridTable.cs
- X509ChainElement.cs
- AutoCompleteStringCollection.cs
- ArraySubsetEnumerator.cs
- SerializationEventsCache.cs
- HtmlTextArea.cs
- ChooseAction.cs
- ContextBase.cs
- MouseEventArgs.cs
- TypeHelper.cs
- Point3DCollectionValueSerializer.cs
- EventMappingSettingsCollection.cs
- CommunicationObjectFaultedException.cs
- DataServiceKeyAttribute.cs
- RangeValidator.cs
- MemberRelationshipService.cs
- FormsAuthenticationEventArgs.cs
- MarshalByValueComponent.cs
- DrawListViewItemEventArgs.cs
- SqlExpander.cs
- XmlProcessingInstruction.cs
- DbProviderConfigurationHandler.cs
- FormattedText.cs
- EdgeModeValidation.cs
- FamilyTypeface.cs
- SoapInteropTypes.cs
- DeferredElementTreeState.cs
- MemberDescriptor.cs
- SmiEventSink_Default.cs
- JsonClassDataContract.cs
- CodeSnippetStatement.cs
- Internal.cs
- ControlTemplate.cs
- HtmlWindow.cs
- CachingHintValidation.cs
- XmlNodeList.cs
- CanonicalFontFamilyReference.cs
- RenderData.cs
- StateMachineHelpers.cs
- OneOfTypeConst.cs
- WebOperationContext.cs
- TextCharacters.cs
- AdornerPresentationContext.cs
- LogEntrySerialization.cs
- StreamSecurityUpgradeInitiatorBase.cs
- WhereaboutsReader.cs
- xdrvalidator.cs
- ScrollItemPattern.cs
- PopOutPanel.cs
- QueryInterceptorAttribute.cs
- ContextStack.cs
- TextParagraph.cs
- WebServicesDescriptionAttribute.cs
- EditingCommands.cs
- EntityChangedParams.cs
- GlyphInfoList.cs
- ExtensibleClassFactory.cs
- SystemIcmpV6Statistics.cs
- DataGrid.cs
- RemoteDebugger.cs
- UnsafeNativeMethods.cs
- _DisconnectOverlappedAsyncResult.cs
- EnumCodeDomSerializer.cs
- SizeF.cs
- ContractInstanceProvider.cs
- DataGridBoolColumn.cs
- HtmlElementErrorEventArgs.cs
- DbConnectionPool.cs
- HttpProfileBase.cs
- PageSettings.cs
- GeometryHitTestResult.cs
- HostingEnvironmentSection.cs
- TextServicesCompartment.cs
- ModelItemDictionary.cs
- JsonReader.cs
- Pair.cs
- DataContractJsonSerializer.cs
- PropertyGridEditorPart.cs
- AnimatedTypeHelpers.cs
- IgnoreFileBuildProvider.cs
- DbXmlEnabledProviderManifest.cs
- GZipStream.cs
- QueryException.cs
- SID.cs
- DatagridviewDisplayedBandsData.cs
- CodeValidator.cs
- HashJoinQueryOperatorEnumerator.cs
- DrawingGroup.cs
- MsmqIntegrationMessagePool.cs
- HtmlControlDesigner.cs