Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / FunctionDefinition.cs / 1305376 / FunctionDefinition.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; ////// Represents an ast node for an inline function definition. /// internal sealed class FunctionDefinition : Node { private readonly Identifier _name; private readonly NodeList_paramDefList; private readonly Node _body; private readonly int _startPosition; private readonly int _endPosition; /// /// Initializes function definition using the name, the optional argument definitions and the body expression. /// internal FunctionDefinition(Identifier name, NodeListargDefList, Node body, int startPosition, int endPosition) { this._name = name; this._paramDefList = argDefList; this._body = body; this._startPosition = startPosition; this._endPosition = endPosition; } /// /// Returns function name. /// internal string Name { get { return this._name.Name; } } ////// Returns optional parameter definition list. May be null. /// internal NodeListParameters { get { return this._paramDefList; } } /// /// Returns function body. /// internal Node Body { get { return this._body; } } ////// Returns start position of the function definition in the command text. /// internal int StartPosition { get { return this._startPosition; } } ////// Returns end position of the function definition in the command text. /// internal int EndPosition { get { return this._endPosition; } } } } // 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; ////// Represents an ast node for an inline function definition. /// internal sealed class FunctionDefinition : Node { private readonly Identifier _name; private readonly NodeList_paramDefList; private readonly Node _body; private readonly int _startPosition; private readonly int _endPosition; /// /// Initializes function definition using the name, the optional argument definitions and the body expression. /// internal FunctionDefinition(Identifier name, NodeListargDefList, Node body, int startPosition, int endPosition) { this._name = name; this._paramDefList = argDefList; this._body = body; this._startPosition = startPosition; this._endPosition = endPosition; } /// /// Returns function name. /// internal string Name { get { return this._name.Name; } } ////// Returns optional parameter definition list. May be null. /// internal NodeListParameters { get { return this._paramDefList; } } /// /// Returns function body. /// internal Node Body { get { return this._body; } } ////// Returns start position of the function definition in the command text. /// internal int StartPosition { get { return this._startPosition; } } ////// Returns end position of the function definition in the command text. /// internal int EndPosition { get { return this._endPosition; } } } } // 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
- DataGridColumnCollectionEditor.cs
- GroupStyle.cs
- CodeArrayCreateExpression.cs
- ChangeDirector.cs
- MasterPageCodeDomTreeGenerator.cs
- FormsAuthenticationCredentials.cs
- DesignTimeParseData.cs
- glyphs.cs
- XmlSchemaAppInfo.cs
- xamlnodes.cs
- ScopelessEnumAttribute.cs
- ResourceReferenceKeyNotFoundException.cs
- ProfilePropertyMetadata.cs
- ExecutionEngineException.cs
- MemberInfoSerializationHolder.cs
- ParallelEnumerableWrapper.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- StandardBindingElement.cs
- HandoffBehavior.cs
- Parameter.cs
- codemethodreferenceexpression.cs
- localization.cs
- QilValidationVisitor.cs
- ValidationResult.cs
- JoinTreeSlot.cs
- PenCursorManager.cs
- AttachmentService.cs
- ExpressionContext.cs
- SinglePageViewer.cs
- PropertyManager.cs
- SoapSchemaMember.cs
- EntityTemplateUserControl.cs
- SqlUtils.cs
- MessagePropertyFilter.cs
- WSHttpBindingElement.cs
- PerformanceCounterCategory.cs
- QuaternionRotation3D.cs
- CodeDomLoader.cs
- ErrorHandler.cs
- ButtonDesigner.cs
- CodeSnippetExpression.cs
- ResourceCategoryAttribute.cs
- DropDownButton.cs
- ObjectDataSourceEventArgs.cs
- ScalarOps.cs
- BindingContext.cs
- RegexCompiler.cs
- _HeaderInfo.cs
- WorkflowItemPresenter.cs
- ReadOnlyPropertyMetadata.cs
- DefaultWorkflowLoaderService.cs
- AutoResetEvent.cs
- Helper.cs
- TypeConverter.cs
- DataContractSet.cs
- DataContractSerializer.cs
- GB18030Encoding.cs
- MeshGeometry3D.cs
- securitycriticaldataClass.cs
- SQLBytesStorage.cs
- RenamedEventArgs.cs
- AttributeParameterInfo.cs
- SecurityDescriptor.cs
- EditorZoneBase.cs
- ChangeDirector.cs
- FixUpCollection.cs
- NetworkCredential.cs
- BigInt.cs
- CustomCategoryAttribute.cs
- _DisconnectOverlappedAsyncResult.cs
- DataGridViewRowCollection.cs
- DLinqTableProvider.cs
- ValueOfAction.cs
- RemotingAttributes.cs
- NotImplementedException.cs
- RoutedEventConverter.cs
- SecurityKeyIdentifier.cs
- HandlerFactoryWrapper.cs
- ActivityXamlServices.cs
- SqlXml.cs
- SafeBitVector32.cs
- EventHandlersStore.cs
- GC.cs
- NativeWindow.cs
- ParagraphVisual.cs
- ProbeMatchesMessage11.cs
- ByteFacetDescriptionElement.cs
- Point3DCollection.cs
- DesigntimeLicenseContext.cs
- TypeUtil.cs
- RawStylusSystemGestureInputReport.cs
- SpeechUI.cs
- XamlClipboardData.cs
- StructuralType.cs
- WeakReference.cs
- TextTrailingWordEllipsis.cs
- AssociativeAggregationOperator.cs
- SoapSchemaMember.cs
- XhtmlBasicLiteralTextAdapter.cs
- RenderContext.cs