Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / MethodExpr.cs / 1305376 / MethodExpr.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
namespace System.Data.Common.EntitySql.AST
{
using System;
using System.Globalization;
using System.Collections;
using System.Collections.Generic;
using System.Data.Common.CommandTrees;
using System.Diagnostics;
///
/// Represents invocation expression: expr(...)
///
internal sealed class MethodExpr : GroupAggregateExpr
{
private readonly Node _expr;
private readonly NodeList _args;
private readonly NodeList _relationships;
///
/// Initializes method ast node.
///
internal MethodExpr(Node expr,
DistinctKind distinctKind,
NodeList args) : this (expr, distinctKind, args, null)
{ }
///
/// Intializes a method ast node with relationships.
///
internal MethodExpr(Node expr,
DistinctKind distinctKind,
NodeList args,
NodeList relationships) : base(distinctKind)
{
Debug.Assert(expr != null, "expr != null");
Debug.Assert(args == null || args.Count > 0, "args must be null or a non-empty list");
_expr = expr;
_args = args;
_relationships = relationships;
}
///
/// For the following expression: "a.b.c.Foo()", returns "a.b.c.Foo".
///
internal Node Expr
{
get { return _expr; }
}
///
/// Argument list.
///
internal NodeList Args
{
get { return _args; }
}
///
/// True if there are associated relationship expressions.
///
internal bool HasRelationships
{
get { return null != _relationships && _relationships.Count > 0; }
}
///
/// Optional relationship list.
///
internal NodeList Relationships
{
get { return _relationships; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
namespace System.Data.Common.EntitySql.AST
{
using System;
using System.Globalization;
using System.Collections;
using System.Collections.Generic;
using System.Data.Common.CommandTrees;
using System.Diagnostics;
///
/// Represents invocation expression: expr(...)
///
internal sealed class MethodExpr : GroupAggregateExpr
{
private readonly Node _expr;
private readonly NodeList _args;
private readonly NodeList _relationships;
///
/// Initializes method ast node.
///
internal MethodExpr(Node expr,
DistinctKind distinctKind,
NodeList args) : this (expr, distinctKind, args, null)
{ }
///
/// Intializes a method ast node with relationships.
///
internal MethodExpr(Node expr,
DistinctKind distinctKind,
NodeList args,
NodeList relationships) : base(distinctKind)
{
Debug.Assert(expr != null, "expr != null");
Debug.Assert(args == null || args.Count > 0, "args must be null or a non-empty list");
_expr = expr;
_args = args;
_relationships = relationships;
}
///
/// For the following expression: "a.b.c.Foo()", returns "a.b.c.Foo".
///
internal Node Expr
{
get { return _expr; }
}
///
/// Argument list.
///
internal NodeList Args
{
get { return _args; }
}
///
/// True if there are associated relationship expressions.
///
internal bool HasRelationships
{
get { return null != _relationships && _relationships.Count > 0; }
}
///
/// Optional relationship list.
///
internal NodeList Relationships
{
get { return _relationships; }
}
}
}
// 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
- PrimitiveXmlSerializers.cs
- UnSafeCharBuffer.cs
- SqlCacheDependencyDatabaseCollection.cs
- RoutedEventArgs.cs
- GenericTypeParameterBuilder.cs
- VectorCollectionValueSerializer.cs
- CheckableControlBaseAdapter.cs
- ActivityBuilder.cs
- StructuredType.cs
- HttpListener.cs
- LayoutTableCell.cs
- ActivityMarkupSerializer.cs
- XmlDocumentSerializer.cs
- OrderedDictionaryStateHelper.cs
- SecurityElement.cs
- ActivityCompletionCallbackWrapper.cs
- DataSourceSerializationException.cs
- TextCollapsingProperties.cs
- TemplatedMailWebEventProvider.cs
- SettingsPropertyIsReadOnlyException.cs
- DodSequenceMerge.cs
- StreamingContext.cs
- TransactionChannelFaultConverter.cs
- DataServiceProcessingPipeline.cs
- CheckBox.cs
- CustomExpression.cs
- MarkupCompilePass1.cs
- BaseCodePageEncoding.cs
- AsyncContentLoadedEventArgs.cs
- StorageEntitySetMapping.cs
- BitmapSizeOptions.cs
- CustomLineCap.cs
- BamlLocalizableResourceKey.cs
- StringConverter.cs
- WorkflowOwnerAsyncResult.cs
- StringUtil.cs
- TimelineClockCollection.cs
- Exceptions.cs
- ResourceDescriptionAttribute.cs
- WriterOutput.cs
- SafeCloseHandleCritical.cs
- AsymmetricKeyExchangeDeformatter.cs
- PropertiesTab.cs
- VirtualDirectoryMappingCollection.cs
- UserValidatedEventArgs.cs
- ParseChildrenAsPropertiesAttribute.cs
- DefaultValueTypeConverter.cs
- XsdBuildProvider.cs
- ExpressionBindingCollection.cs
- NamespaceListProperty.cs
- DataRelationCollection.cs
- ConnectionAcceptor.cs
- HwndStylusInputProvider.cs
- ReadOnlyHierarchicalDataSourceView.cs
- HashHelper.cs
- ContextBase.cs
- PersonalizationProviderCollection.cs
- ModulesEntry.cs
- ConfigsHelper.cs
- Pkcs9Attribute.cs
- FormsAuthenticationCredentials.cs
- ShapingEngine.cs
- PackagePart.cs
- PersonalizationStateInfo.cs
- ReturnType.cs
- EntityDataSourceDesignerHelper.cs
- ThicknessAnimationBase.cs
- ExternalException.cs
- DataGridRow.cs
- ImageBrush.cs
- Hyperlink.cs
- ResetableIterator.cs
- NavigateEvent.cs
- HotCommands.cs
- WindowsRichEditRange.cs
- Stroke.cs
- ExtensionFile.cs
- DataGridCellItemAutomationPeer.cs
- DefaultProxySection.cs
- _SslStream.cs
- SafeFindHandle.cs
- ServiceDebugElement.cs
- OutputScope.cs
- PackageRelationshipCollection.cs
- ParameterBinding.cs
- Point.cs
- NativeMethods.cs
- Compilation.cs
- KoreanLunisolarCalendar.cs
- DataGridViewRowHeaderCell.cs
- Subtree.cs
- FormsAuthenticationUser.cs
- StylusPointPropertyInfoDefaults.cs
- XmlSchemaGroup.cs
- TextParentUndoUnit.cs
- RealProxy.cs
- HandlerBase.cs
- ToolStripItemClickedEventArgs.cs
- PackagingUtilities.cs
- ExtensionWindowHeader.cs