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
- FillBehavior.cs
- ContainerActivationHelper.cs
- DataControlPagerLinkButton.cs
- IsolatedStorageFile.cs
- MetadataException.cs
- FilterableAttribute.cs
- SystemWebCachingSectionGroup.cs
- BitVector32.cs
- MobileCapabilities.cs
- Soap.cs
- AtomServiceDocumentSerializer.cs
- NetworkInformationException.cs
- BaseTemplateParser.cs
- DbModificationCommandTree.cs
- XPathAxisIterator.cs
- EntityDataSourceWrapper.cs
- DecryptedHeader.cs
- ReadOnlyDictionary.cs
- RefreshPropertiesAttribute.cs
- XhtmlBasicLiteralTextAdapter.cs
- EditorBrowsableAttribute.cs
- BaseProcessor.cs
- InvokeHandlers.cs
- DocumentXPathNavigator.cs
- AssemblyAttributes.cs
- MouseButton.cs
- CompiledAction.cs
- SqlNodeTypeOperators.cs
- TextDecorationLocationValidation.cs
- ClipboardData.cs
- PreloadedPackages.cs
- IntPtr.cs
- EntityTemplateFactory.cs
- RawKeyboardInputReport.cs
- DataRowChangeEvent.cs
- baseshape.cs
- WebPartConnectionsCancelVerb.cs
- UpDownEvent.cs
- SolidColorBrush.cs
- SQLRoleProvider.cs
- TextEffect.cs
- RTLAwareMessageBox.cs
- FieldNameLookup.cs
- TemplateAction.cs
- RegisteredArrayDeclaration.cs
- RootProfilePropertySettingsCollection.cs
- StateMachineHelpers.cs
- ExpandedWrapper.cs
- ValidationRule.cs
- DetailsViewDeleteEventArgs.cs
- GeneralTransformGroup.cs
- EtwTrace.cs
- ContainerSelectorActiveEvent.cs
- CodeTypeReference.cs
- IResourceProvider.cs
- ModelServiceImpl.cs
- IgnoreFlushAndCloseStream.cs
- WeakKeyDictionary.cs
- OrderByExpression.cs
- FormConverter.cs
- DataListComponentEditor.cs
- XmlSchemaNotation.cs
- GPPOINT.cs
- diagnosticsswitches.cs
- UnsafeNativeMethods.cs
- ToolStripItemImageRenderEventArgs.cs
- MimeMultiPart.cs
- MatchingStyle.cs
- NamedPipeAppDomainProtocolHandler.cs
- FtpRequestCacheValidator.cs
- SqlMethods.cs
- FontCacheLogic.cs
- HttpAsyncResult.cs
- CodeSnippetTypeMember.cs
- Propagator.Evaluator.cs
- Model3DGroup.cs
- XmlIncludeAttribute.cs
- newitemfactory.cs
- SQLDouble.cs
- SqlConnection.cs
- dsa.cs
- X509WindowsSecurityToken.cs
- GZipStream.cs
- Exception.cs
- ACL.cs
- HwndSource.cs
- TreeNodeBindingCollection.cs
- PropertyGroupDescription.cs
- UIElementParaClient.cs
- PackageFilter.cs
- StringSource.cs
- TextCompositionEventArgs.cs
- XmlTextEncoder.cs
- GridViewColumnHeader.cs
- StringConcat.cs
- SparseMemoryStream.cs
- OracleRowUpdatingEventArgs.cs
- DbDeleteCommandTree.cs
- DbConnectionPool.cs
- CodeAccessPermission.cs