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
- RadioButton.cs
- HttpWebResponse.cs
- Accessible.cs
- CharacterMetricsDictionary.cs
- ReadWriteSpinLock.cs
- HttpCachePolicyElement.cs
- ParamArrayAttribute.cs
- SystemParameters.cs
- WebExceptionStatus.cs
- XPathDocumentNavigator.cs
- NamedObject.cs
- AnimatedTypeHelpers.cs
- WebPartTracker.cs
- DependencyObjectType.cs
- DoubleCollectionValueSerializer.cs
- EngineSite.cs
- PanningMessageFilter.cs
- SchemaCollectionCompiler.cs
- OperandQuery.cs
- ZoneButton.cs
- _ListenerAsyncResult.cs
- JournalEntry.cs
- TextChange.cs
- EmptyStringExpandableObjectConverter.cs
- XmlSchemaInferenceException.cs
- ToolboxItem.cs
- ReadOnlyNameValueCollection.cs
- MemberPathMap.cs
- DataGridViewControlCollection.cs
- SerializationSectionGroup.cs
- XPathItem.cs
- FontWeight.cs
- COM2IPerPropertyBrowsingHandler.cs
- HtmlInputFile.cs
- StreamBodyWriter.cs
- Classification.cs
- ProxyAttribute.cs
- ValuePattern.cs
- DCSafeHandle.cs
- CapacityStreamGeometryContext.cs
- SchemaImporterExtensionsSection.cs
- TimeSpanValidatorAttribute.cs
- DataTableMappingCollection.cs
- TraceContextEventArgs.cs
- XmlDictionaryReader.cs
- FileDataSourceCache.cs
- MultipartContentParser.cs
- MonitorWrapper.cs
- TypeToArgumentTypeConverter.cs
- ClientConfigPaths.cs
- GenericUriParser.cs
- LinqDataSourceView.cs
- WSTransactionSection.cs
- ToolStripKeyboardHandlingService.cs
- EdmScalarPropertyAttribute.cs
- DataGridViewImageColumn.cs
- Int16Converter.cs
- ConsumerConnectionPoint.cs
- ControlValuePropertyAttribute.cs
- Material.cs
- FormViewModeEventArgs.cs
- InkCanvasInnerCanvas.cs
- HostExecutionContextManager.cs
- Ref.cs
- GridViewPageEventArgs.cs
- _FixedSizeReader.cs
- DiscoveryEndpointElement.cs
- DragEventArgs.cs
- EventLogInformation.cs
- WsdlInspector.cs
- HtmlSelect.cs
- FlowDocumentView.cs
- FieldCollectionEditor.cs
- COM2ColorConverter.cs
- RayMeshGeometry3DHitTestResult.cs
- SchemaNames.cs
- IssuanceLicense.cs
- SqlCacheDependencySection.cs
- XPathBinder.cs
- HostingEnvironmentSection.cs
- HttpServerVarsCollection.cs
- Tool.cs
- PenContext.cs
- BlurEffect.cs
- SqlUserDefinedTypeAttribute.cs
- AttachmentCollection.cs
- NumericExpr.cs
- QuaternionValueSerializer.cs
- ConnectionManagementElementCollection.cs
- ExpandableObjectConverter.cs
- SymmetricAlgorithm.cs
- PermissionSetEnumerator.cs
- ETagAttribute.cs
- OperandQuery.cs
- Visual.cs
- SemaphoreFullException.cs
- TextElementEditingBehaviorAttribute.cs
- SerialPinChanges.cs
- PersonalizationStateQuery.cs
- WindowsFormsLinkLabel.cs