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 QilFactory .
///
internal class QilUnary : QilNode {
private QilNode child;
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// Construct a new node
///
public QilUnary(QilNodeType nodeType, QilNode child) : base(nodeType) {
this.child = child;
}
//-----------------------------------------------
// IList methods -- 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 QilFactory .
///
internal class QilUnary : QilNode {
private QilNode child;
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// Construct a new node
///
public QilUnary(QilNodeType nodeType, QilNode child) : base(nodeType) {
this.child = child;
}
//-----------------------------------------------
// IList methods -- 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
- GridItemCollection.cs
- WindowsScroll.cs
- VirtualizingStackPanel.cs
- MediaEntryAttribute.cs
- MetaModel.cs
- ObjectDisposedException.cs
- OpenTypeLayout.cs
- XmlWellformedWriter.cs
- HttpListenerTimeoutManager.cs
- LinqDataSourceSelectEventArgs.cs
- OdbcRowUpdatingEvent.cs
- CategoryAttribute.cs
- BackStopAuthenticationModule.cs
- CookieParameter.cs
- EventItfInfo.cs
- HyperLink.cs
- DataGridViewTextBoxCell.cs
- DSASignatureFormatter.cs
- _AuthenticationState.cs
- EncoderFallback.cs
- XPathDocumentIterator.cs
- DependencyPropertyValueSerializer.cs
- ManualResetEventSlim.cs
- DesignerAttribute.cs
- MatrixTransform.cs
- ModelEditingScope.cs
- ByteStreamGeometryContext.cs
- UrlMapping.cs
- SimpleType.cs
- Int32RectConverter.cs
- UInt32Storage.cs
- cryptoapiTransform.cs
- MouseOverProperty.cs
- RubberbandSelector.cs
- CrossAppDomainChannel.cs
- DataSourceConverter.cs
- HttpCapabilitiesEvaluator.cs
- CloseCryptoHandleRequest.cs
- FieldTemplateUserControl.cs
- StoreItemCollection.Loader.cs
- TranslateTransform3D.cs
- StringInfo.cs
- IndexOutOfRangeException.cs
- XmlNodeChangedEventManager.cs
- ServiceDesigner.cs
- Rfc2898DeriveBytes.cs
- FileDialog_Vista.cs
- ControlAdapter.cs
- OrCondition.cs
- GridLengthConverter.cs
- BrowserDefinitionCollection.cs
- WebConfigurationFileMap.cs
- Speller.cs
- DLinqDataModelProvider.cs
- PersistChildrenAttribute.cs
- XmlWriterSettings.cs
- TreeBuilderXamlTranslator.cs
- ContainerSelectorBehavior.cs
- SchemaCollectionCompiler.cs
- Mutex.cs
- IxmlLineInfo.cs
- ConfigPathUtility.cs
- KeyFrames.cs
- DeploymentSectionCache.cs
- DataGridViewCellMouseEventArgs.cs
- DispatchProxy.cs
- SqlMethodAttribute.cs
- RegistryExceptionHelper.cs
- ParserStreamGeometryContext.cs
- CssTextWriter.cs
- KnownBoxes.cs
- NameValueFileSectionHandler.cs
- SettingsPropertyIsReadOnlyException.cs
- ContentDefinition.cs
- UTF8Encoding.cs
- GACIdentityPermission.cs
- DeviceContext.cs
- ThrowHelper.cs
- BooleanKeyFrameCollection.cs
- TextEffect.cs
- XmlElementList.cs
- DbException.cs
- ContainerUIElement3D.cs
- XmlMembersMapping.cs
- Selection.cs
- XmlSchemaValidator.cs
- WebServiceTypeData.cs
- CodeComment.cs
- DateTimeConverter.cs
- XMLUtil.cs
- ResizeGrip.cs
- DataGridHeaderBorder.cs
- Window.cs
- MeasurementDCInfo.cs
- SHA384Managed.cs
- ScopelessEnumAttribute.cs
- PageParserFilter.cs
- FtpRequestCacheValidator.cs
- PersianCalendar.cs
- SynchronizedReadOnlyCollection.cs