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
- Win32MouseDevice.cs
- QilScopedVisitor.cs
- HtmlElement.cs
- Renderer.cs
- ScrollItemProviderWrapper.cs
- ButtonBaseAdapter.cs
- PopupEventArgs.cs
- Descriptor.cs
- TransactionManager.cs
- UnsafeNativeMethods.cs
- ToggleButton.cs
- TextRange.cs
- BuildProvidersCompiler.cs
- ParamArrayAttribute.cs
- UIPermission.cs
- ValueType.cs
- RestHandler.cs
- itemelement.cs
- AssemblyFilter.cs
- FixedSOMFixedBlock.cs
- AssemblyNameProxy.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- VisualState.cs
- HtmlPhoneCallAdapter.cs
- BindingValueChangedEventArgs.cs
- AsnEncodedData.cs
- TemplateControl.cs
- EmptyCollection.cs
- ProviderBase.cs
- XamlParser.cs
- Message.cs
- FormatConvertedBitmap.cs
- BrowserCapabilitiesFactory.cs
- OutputChannel.cs
- _OSSOCK.cs
- Parameter.cs
- ExpressionCopier.cs
- ZipIORawDataFileBlock.cs
- PromptEventArgs.cs
- GlyphsSerializer.cs
- ChannelDispatcher.cs
- SafeMemoryMappedFileHandle.cs
- DbFunctionCommandTree.cs
- SqlFacetAttribute.cs
- SqlBulkCopy.cs
- ListViewPagedDataSource.cs
- MetadataCache.cs
- InkPresenter.cs
- CurrentChangingEventManager.cs
- FieldReference.cs
- PointCollection.cs
- InvalidFilterCriteriaException.cs
- MappingException.cs
- PropertyDescriptor.cs
- CompiledRegexRunnerFactory.cs
- WebEventTraceProvider.cs
- JapaneseLunisolarCalendar.cs
- HTMLTagNameToTypeMapper.cs
- VariableAction.cs
- WindowsNonControl.cs
- FreezableCollection.cs
- ProfileGroupSettings.cs
- RelationalExpressions.cs
- Timeline.cs
- PointAnimation.cs
- BufferedStream.cs
- ExceptionHandlerDesigner.cs
- DataGridViewSortCompareEventArgs.cs
- ComponentChangingEvent.cs
- ListViewContainer.cs
- UITypeEditor.cs
- ServiceNotStartedException.cs
- xml.cs
- GetIsBrowserClientRequest.cs
- GetPageNumberCompletedEventArgs.cs
- XamlWriter.cs
- PropertyEmitter.cs
- fixedPageContentExtractor.cs
- OneWayElement.cs
- TransactedBatchingBehavior.cs
- EventBookmark.cs
- XmlTextEncoder.cs
- FormsIdentity.cs
- Triangle.cs
- MonikerUtility.cs
- CollectionViewProxy.cs
- VisualProxy.cs
- SemanticBasicElement.cs
- BypassElement.cs
- EventLogPropertySelector.cs
- DetailsViewInsertEventArgs.cs
- ConfigurationSectionGroup.cs
- PathFigureCollection.cs
- Table.cs
- IImplicitResourceProvider.cs
- TrackingParticipant.cs
- XmlAttributes.cs
- LeftCellWrapper.cs
- EventBuilder.cs
- IListConverters.cs