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
- AuditLog.cs
- QueryActivatableWorkflowsCommand.cs
- ServiceDescriptionReflector.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XamlStackWriter.cs
- CatalogZoneBase.cs
- EditorAttribute.cs
- LockedActivityGlyph.cs
- Block.cs
- ChannelListenerBase.cs
- DeleteCardRequest.cs
- PerfCounters.cs
- OdbcError.cs
- FilteredDataSetHelper.cs
- TiffBitmapDecoder.cs
- CellCreator.cs
- X509Certificate2Collection.cs
- CapabilitiesRule.cs
- ButtonChrome.cs
- FileLoadException.cs
- FontUnit.cs
- SafeFileMappingHandle.cs
- Currency.cs
- PersonalizationStateInfoCollection.cs
- ZoneButton.cs
- IdentityModelStringsVersion1.cs
- WebSysDisplayNameAttribute.cs
- ExportOptions.cs
- ImageConverter.cs
- ActivityPropertyReference.cs
- RSAPKCS1SignatureDeformatter.cs
- SiteMapPath.cs
- PagedControl.cs
- cookieexception.cs
- BitmapEffectInputData.cs
- SelectionRange.cs
- ControlIdConverter.cs
- DockingAttribute.cs
- OracleSqlParser.cs
- UnitySerializationHolder.cs
- SizeLimitedCache.cs
- ResXResourceReader.cs
- DataKeyArray.cs
- ExpressionContext.cs
- PageThemeBuildProvider.cs
- ClientScriptManager.cs
- QueryOptionExpression.cs
- FaultHandlingFilter.cs
- ManagedIStream.cs
- OLEDB_Util.cs
- oledbmetadatacollectionnames.cs
- DtrList.cs
- KernelTypeValidation.cs
- DesignerView.Commands.cs
- VisualStyleElement.cs
- PropertyEntry.cs
- RootBuilder.cs
- TdsParserSessionPool.cs
- XsltContext.cs
- WebPartConnection.cs
- QilInvokeLateBound.cs
- Encoder.cs
- DrawingGroupDrawingContext.cs
- RoutedCommand.cs
- HandlerFactoryCache.cs
- AspNetHostingPermission.cs
- SspiWrapper.cs
- MessageQueuePermissionAttribute.cs
- PriorityItem.cs
- SafeNativeMethods.cs
- DescendantOverDescendantQuery.cs
- WindowAutomationPeer.cs
- EndpointAddress.cs
- ClientTargetCollection.cs
- basenumberconverter.cs
- XmlSchemas.cs
- EntityDataSourceUtil.cs
- XPathNodeHelper.cs
- SineEase.cs
- MenuItemCollectionEditorDialog.cs
- Queue.cs
- HttpVersion.cs
- WebPartRestoreVerb.cs
- DataGridViewComboBoxColumn.cs
- CheckBox.cs
- baseshape.cs
- Graphics.cs
- HelpKeywordAttribute.cs
- CollectionViewSource.cs
- SamlConstants.cs
- ProfileInfo.cs
- counter.cs
- HTTPRemotingHandler.cs
- HttpVersion.cs
- HttpWebResponse.cs
- Triangle.cs
- RandomNumberGenerator.cs
- EdmComplexTypeAttribute.cs
- DataGridSortCommandEventArgs.cs
- TextEncodedRawTextWriter.cs