Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- MemberMaps.cs
- ActivitiesCollection.cs
- IndexedEnumerable.cs
- TableRowCollection.cs
- SqlRecordBuffer.cs
- DeviceOverridableAttribute.cs
- DesignerCommandSet.cs
- WebPartDescriptionCollection.cs
- TitleStyle.cs
- BackgroundWorker.cs
- XmlSerializerVersionAttribute.cs
- DataGridViewComboBoxCell.cs
- MetafileHeader.cs
- DataSourceSelectArguments.cs
- DateTimeConstantAttribute.cs
- DataGridViewCellConverter.cs
- Point3D.cs
- XmlProcessingInstruction.cs
- ContractInferenceHelper.cs
- AttachedPropertyBrowsableAttribute.cs
- VisualStyleElement.cs
- Vector3DKeyFrameCollection.cs
- StringDictionary.cs
- CanonicalXml.cs
- ChangeInterceptorAttribute.cs
- SingleSelectRootGridEntry.cs
- ConvertEvent.cs
- X509UI.cs
- Signature.cs
- Converter.cs
- AssemblyBuilder.cs
- WorkflowDefinitionDispenser.cs
- TimeoutException.cs
- DataServiceClientException.cs
- MetaColumn.cs
- XmlNavigatorStack.cs
- DocumentViewerConstants.cs
- WriteableBitmap.cs
- RelatedView.cs
- AssemblyFilter.cs
- User.cs
- RemoteX509AsymmetricSecurityKey.cs
- HtmlWindow.cs
- TextBox.cs
- XpsS0ValidatingLoader.cs
- NumericUpDown.cs
- NameObjectCollectionBase.cs
- InvokeAction.cs
- TextDecoration.cs
- ViewLoader.cs
- MemoryRecordBuffer.cs
- ModuleConfigurationInfo.cs
- EventSetterHandlerConverter.cs
- GB18030Encoding.cs
- DocumentEventArgs.cs
- SimplePropertyEntry.cs
- ExtendedProperty.cs
- DataGridDesigner.cs
- WebPartPersonalization.cs
- FileDialog_Vista.cs
- WebBrowser.cs
- ControlParameter.cs
- ScrollPatternIdentifiers.cs
- Registry.cs
- BlockExpression.cs
- Assert.cs
- ReferentialConstraint.cs
- RequestUriProcessor.cs
- CompositeDuplexBindingElement.cs
- FactoryRecord.cs
- ArraySortHelper.cs
- DataGridCellInfo.cs
- MexHttpsBindingElement.cs
- XmlName.cs
- Subset.cs
- Command.cs
- DeclarativeExpressionConditionDeclaration.cs
- StoreAnnotationsMap.cs
- UnhandledExceptionEventArgs.cs
- ApplicationActivator.cs
- Point3DCollectionConverter.cs
- TypeUsage.cs
- EffectiveValueEntry.cs
- ToolStripDropDownButton.cs
- SignatureHelper.cs
- TemplateControlCodeDomTreeGenerator.cs
- StringFunctions.cs
- TextRange.cs
- EmptyEnumerator.cs
- HttpConfigurationContext.cs
- objectresult_tresulttype.cs
- DataGridCell.cs
- OpenTypeCommon.cs
- UrlMappingCollection.cs
- TextEditorDragDrop.cs
- ExceptionNotification.cs
- RegisteredExpandoAttribute.cs
- DefaultCommandConverter.cs
- EventProviderTraceListener.cs
- TextBoxDesigner.cs