Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- StringReader.cs
- TemplateControlBuildProvider.cs
- EtwTrace.cs
- ObjectDataSourceDisposingEventArgs.cs
- ContainerControl.cs
- ChannelManager.cs
- TextInfo.cs
- AmbiguousMatchException.cs
- Stackframe.cs
- ContextStack.cs
- InteropAutomationProvider.cs
- ProxyWebPartConnectionCollection.cs
- SqlXmlStorage.cs
- DecimalFormatter.cs
- ByteKeyFrameCollection.cs
- Registry.cs
- HtmlUtf8RawTextWriter.cs
- ConditionalExpression.cs
- EventLogTraceListener.cs
- DataGridLinkButton.cs
- WizardSideBarListControlItemEventArgs.cs
- SerialPort.cs
- AssemblyResourceLoader.cs
- TypeExtensionConverter.cs
- BinaryCommonClasses.cs
- EllipticalNodeOperations.cs
- NavigationEventArgs.cs
- Page.cs
- TypeToStringValueConverter.cs
- DeferredSelectedIndexReference.cs
- PingReply.cs
- DataService.cs
- DerivedKeySecurityTokenStub.cs
- SmtpLoginAuthenticationModule.cs
- QilPatternFactory.cs
- SqlExpressionNullability.cs
- EdmConstants.cs
- ListBase.cs
- ObjRef.cs
- WebContext.cs
- CommandManager.cs
- X509WindowsSecurityToken.cs
- DataServiceExpressionVisitor.cs
- SystemParameters.cs
- ParameterCollectionEditor.cs
- PackageRelationship.cs
- MD5CryptoServiceProvider.cs
- PageThemeCodeDomTreeGenerator.cs
- DoubleLinkListEnumerator.cs
- DiscoveryClientChannelBase.cs
- SqlReorderer.cs
- InheritanceRules.cs
- ErrorView.xaml.cs
- CmsInterop.cs
- LayoutEngine.cs
- DataRecordInfo.cs
- SqlRowUpdatingEvent.cs
- MethodRental.cs
- BinaryObjectInfo.cs
- PointUtil.cs
- EventWaitHandle.cs
- PropertyDescriptorCollection.cs
- XmlMemberMapping.cs
- SHA1CryptoServiceProvider.cs
- BaseResourcesBuildProvider.cs
- IdentityNotMappedException.cs
- DataGridCaption.cs
- GCHandleCookieTable.cs
- Panel.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- PolyLineSegmentFigureLogic.cs
- ConfigurationProperty.cs
- ActivityExecutorDelegateInfo.cs
- LockCookie.cs
- InstanceData.cs
- ElapsedEventArgs.cs
- CatalogZone.cs
- TextShapeableCharacters.cs
- RelationshipNavigation.cs
- ServicePoint.cs
- CompiledQuery.cs
- HitTestParameters.cs
- ApplicationHost.cs
- PersonalizablePropertyEntry.cs
- HwndStylusInputProvider.cs
- Color.cs
- Overlapped.cs
- TypeInitializationException.cs
- NetworkInformationPermission.cs
- RegisteredDisposeScript.cs
- SynchronizedDispatch.cs
- EditorZone.cs
- BaseCAMarshaler.cs
- IPHostEntry.cs
- SqlCaseSimplifier.cs
- KeyValueConfigurationCollection.cs
- TypedRowHandler.cs
- SoapCommonClasses.cs
- FixUpCollection.cs
- Int64AnimationUsingKeyFrames.cs