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
- UInt64Converter.cs
- PagerSettings.cs
- XmlRootAttribute.cs
- InputProviderSite.cs
- DataGrid.cs
- TypedRowHandler.cs
- ValidatingCollection.cs
- CodeAccessSecurityEngine.cs
- DataControlLinkButton.cs
- Clipboard.cs
- RuleRefElement.cs
- CachedFontFace.cs
- ContractListAdapter.cs
- UserValidatedEventArgs.cs
- ChildrenQuery.cs
- SQLChars.cs
- SettingsProperty.cs
- InsufficientMemoryException.cs
- WorkflowInstanceExtensionCollection.cs
- ActiveXHelper.cs
- NameHandler.cs
- TextBox.cs
- NavigatorOutput.cs
- LookupBindingPropertiesAttribute.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- TextEndOfParagraph.cs
- VisualStyleTypesAndProperties.cs
- MdiWindowListItemConverter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- EntityDataSourceContainerNameConverter.cs
- WebPartEditorApplyVerb.cs
- AutoFocusStyle.xaml.cs
- ConstructorExpr.cs
- ColumnMapTranslator.cs
- TypeSemantics.cs
- SHA1CryptoServiceProvider.cs
- TextRangeEditLists.cs
- CodeDirectionExpression.cs
- DebugControllerThread.cs
- SqlDataSourceCache.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- DataGridRow.cs
- SAPICategories.cs
- ComboBoxItem.cs
- ShadowGlyph.cs
- SingleTagSectionHandler.cs
- XmlTextReaderImplHelpers.cs
- Exceptions.cs
- UpDownBase.cs
- FixUpCollection.cs
- HotCommands.cs
- TextElementAutomationPeer.cs
- VirtualPathUtility.cs
- SqlCacheDependencyDatabaseCollection.cs
- Utils.cs
- ResourceManagerWrapper.cs
- BooleanExpr.cs
- RemotingSurrogateSelector.cs
- SelectionProviderWrapper.cs
- DiscardableAttribute.cs
- JsonDeserializer.cs
- XmlSchemaValidator.cs
- CodeFieldReferenceExpression.cs
- DefaultBindingPropertyAttribute.cs
- IPGlobalProperties.cs
- filewebrequest.cs
- ChannelTraceRecord.cs
- GatewayDefinition.cs
- DynamicUpdateCommand.cs
- Send.cs
- BigInt.cs
- SynchronousReceiveElement.cs
- InfiniteTimeSpanConverter.cs
- EastAsianLunisolarCalendar.cs
- PolyLineSegment.cs
- HtmlContainerControl.cs
- Descriptor.cs
- AsnEncodedData.cs
- SecurityImpersonationBehavior.cs
- ShimAsPublicXamlType.cs
- XmlEncoding.cs
- MimeBasePart.cs
- FormsIdentity.cs
- TableMethodGenerator.cs
- FormViewUpdateEventArgs.cs
- TextEncodedRawTextWriter.cs
- MessageBuilder.cs
- SqlServer2KCompatibilityCheck.cs
- AuthorizationRuleCollection.cs
- SecurityUtils.cs
- TextBreakpoint.cs
- LineBreak.cs
- MessageQueuePermissionAttribute.cs
- AdRotator.cs
- SystemGatewayIPAddressInformation.cs
- VBCodeProvider.cs
- ReflectionHelper.cs
- TextTreeInsertElementUndoUnit.cs
- ForeignKeyConstraint.cs
- ClientFormsIdentity.cs