Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilInvokeEarlyBound.cs / 1305376 / QilInvokeEarlyBound.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Reflection;
namespace System.Xml.Xsl.Qil {
///
/// A function invocation node which reperesents a call to an early bound Clr function.
///
internal class QilInvokeEarlyBound : QilTernary {
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// Construct a new node
///
/// QilLiteral containing the Clr MethodInfo for the early bound function
public QilInvokeEarlyBound(QilNodeType nodeType, QilNode name, QilNode method, QilNode arguments, XmlQueryType resultType)
: base(nodeType, name, method, arguments) {
this.xmlType = resultType;
}
//-----------------------------------------------
// QilInvokeEarlyBound methods
//-----------------------------------------------
public QilName Name {
get { return (QilName) Left; }
set { Left = value; }
}
public MethodInfo ClrMethod {
get { return (MethodInfo) ((QilLiteral) Center).Value; }
set { ((QilLiteral) Center).Value = value; }
}
public QilList Arguments {
get { return (QilList) Right; }
set { Right = value; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Reflection;
namespace System.Xml.Xsl.Qil {
///
/// A function invocation node which reperesents a call to an early bound Clr function.
///
internal class QilInvokeEarlyBound : QilTernary {
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// Construct a new node
///
/// QilLiteral containing the Clr MethodInfo for the early bound function
public QilInvokeEarlyBound(QilNodeType nodeType, QilNode name, QilNode method, QilNode arguments, XmlQueryType resultType)
: base(nodeType, name, method, arguments) {
this.xmlType = resultType;
}
//-----------------------------------------------
// QilInvokeEarlyBound methods
//-----------------------------------------------
public QilName Name {
get { return (QilName) Left; }
set { Left = value; }
}
public MethodInfo ClrMethod {
get { return (MethodInfo) ((QilLiteral) Center).Value; }
set { ((QilLiteral) Center).Value = value; }
}
public QilList Arguments {
get { return (QilList) Right; }
set { Right = 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
- InputLanguage.cs
- DataGridViewSelectedColumnCollection.cs
- SpAudioStreamWrapper.cs
- ExpanderAutomationPeer.cs
- MediaScriptCommandRoutedEventArgs.cs
- ItemDragEvent.cs
- SqlClientFactory.cs
- ContentElement.cs
- FilePresentation.cs
- UrlPath.cs
- RemotingConfigParser.cs
- WebSysDefaultValueAttribute.cs
- TextProviderWrapper.cs
- ColumnTypeConverter.cs
- WebPartDisplayModeCollection.cs
- Attributes.cs
- PageBreakRecord.cs
- ByteAnimationBase.cs
- PathSegmentCollection.cs
- HandoffBehavior.cs
- SqlPersonalizationProvider.cs
- TextMetrics.cs
- LoadItemsEventArgs.cs
- ApplicationSecurityManager.cs
- MetadataPropertyvalue.cs
- DataGridColumnHeaderCollection.cs
- TailPinnedEventArgs.cs
- RecordManager.cs
- InternalControlCollection.cs
- SoapServerMessage.cs
- RuleConditionDialog.cs
- ListMarkerSourceInfo.cs
- PersonalizationProviderHelper.cs
- UiaCoreApi.cs
- WindowsFont.cs
- counter.cs
- MultiAsyncResult.cs
- WebPartZoneDesigner.cs
- Selection.cs
- XPathNode.cs
- ProcessHostServerConfig.cs
- ParallelDesigner.xaml.cs
- SchemaSetCompiler.cs
- SelectedDatesCollection.cs
- path.cs
- XmlLanguageConverter.cs
- String.cs
- Vertex.cs
- XmlSchemaAll.cs
- AstTree.cs
- ImportCatalogPart.cs
- BamlCollectionHolder.cs
- BitArray.cs
- ByteConverter.cs
- TextChange.cs
- RelatedView.cs
- SocketConnection.cs
- util.cs
- Function.cs
- mediaclock.cs
- PcmConverter.cs
- ScrollItemPatternIdentifiers.cs
- CallInfo.cs
- WindowsToolbarAsMenu.cs
- _NegoState.cs
- TypeResolver.cs
- ThousandthOfEmRealDoubles.cs
- DecimalFormatter.cs
- VectorCollection.cs
- InternalControlCollection.cs
- SystemColors.cs
- WmiEventSink.cs
- ColorConverter.cs
- DbTransaction.cs
- PlanCompiler.cs
- SurrogateEncoder.cs
- ArrayExtension.cs
- AutoResizedEvent.cs
- ParameterModifier.cs
- FixedTextContainer.cs
- EnumValAlphaComparer.cs
- ProcessThread.cs
- TraceEventCache.cs
- SubstitutionList.cs
- ThreadStartException.cs
- COM2IProvidePropertyBuilderHandler.cs
- COM2ColorConverter.cs
- WebPartHelpVerb.cs
- Gdiplus.cs
- ProfileSection.cs
- DataBindingExpressionBuilder.cs
- ExpandSegment.cs
- URL.cs
- ShaderEffect.cs
- CdpEqualityComparer.cs
- HttpListenerResponse.cs
- CopyNodeSetAction.cs
- ParallelTimeline.cs
- OleDbConnection.cs
- WebBrowserNavigatingEventHandler.cs