Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / TypeDefinition.cs / 1305376 / TypeDefinition.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 a collection type definition. /// internal sealed class CollectionTypeDefinition : Node { private readonly Node _elementTypeDef; ////// Initializes collection type definition using the element type definition. /// internal CollectionTypeDefinition(Node elementTypeDef) { this._elementTypeDef = elementTypeDef; } ////// Returns collection element type defintion. /// internal Node ElementTypeDef { get { return this._elementTypeDef; } } } ////// Represents an ast node for a reference type definition. /// internal sealed class RefTypeDefinition : Node { private readonly Node _refTypeIdentifier; ////// Initializes reference type definition using the referenced type identifier. /// internal RefTypeDefinition(Node refTypeIdentifier) { this._refTypeIdentifier = refTypeIdentifier; } ////// Returns referenced type identifier. /// internal Node RefTypeIdentifier { get { return this._refTypeIdentifier; } } } ////// Represents an ast node for a row type definition. /// internal sealed class RowTypeDefinition : Node { private readonly NodeList_propDefList; /// /// Initializes row type definition using the property definitions. /// internal RowTypeDefinition(NodeListpropDefList) { this._propDefList = propDefList; } /// /// Returns property definitions. /// internal NodeListProperties { get { return this._propDefList; } } } /// /// Represents an ast node for a property definition (name/type) /// internal sealed class PropDefinition : Node { private readonly Identifier _name; private readonly Node _typeDefExpr; ////// Initializes property definition using the name and the type definition. /// /// internal PropDefinition(Identifier name, Node typeDefExpr) { this._name = name; this._typeDefExpr = typeDefExpr; } ////// Returns property name. /// internal Identifier Name { get { return this._name; } } ////// Returns property type. /// internal Node Type { get { return this._typeDefExpr; } } } } // 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 a collection type definition. /// internal sealed class CollectionTypeDefinition : Node { private readonly Node _elementTypeDef; ////// Initializes collection type definition using the element type definition. /// internal CollectionTypeDefinition(Node elementTypeDef) { this._elementTypeDef = elementTypeDef; } ////// Returns collection element type defintion. /// internal Node ElementTypeDef { get { return this._elementTypeDef; } } } ////// Represents an ast node for a reference type definition. /// internal sealed class RefTypeDefinition : Node { private readonly Node _refTypeIdentifier; ////// Initializes reference type definition using the referenced type identifier. /// internal RefTypeDefinition(Node refTypeIdentifier) { this._refTypeIdentifier = refTypeIdentifier; } ////// Returns referenced type identifier. /// internal Node RefTypeIdentifier { get { return this._refTypeIdentifier; } } } ////// Represents an ast node for a row type definition. /// internal sealed class RowTypeDefinition : Node { private readonly NodeList_propDefList; /// /// Initializes row type definition using the property definitions. /// internal RowTypeDefinition(NodeListpropDefList) { this._propDefList = propDefList; } /// /// Returns property definitions. /// internal NodeListProperties { get { return this._propDefList; } } } /// /// Represents an ast node for a property definition (name/type) /// internal sealed class PropDefinition : Node { private readonly Identifier _name; private readonly Node _typeDefExpr; ////// Initializes property definition using the name and the type definition. /// /// internal PropDefinition(Identifier name, Node typeDefExpr) { this._name = name; this._typeDefExpr = typeDefExpr; } ////// Returns property name. /// internal Identifier Name { get { return this._name; } } ////// Returns property type. /// internal Node Type { get { return this._typeDefExpr; } } } } // 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
- TypeForwardedToAttribute.cs
- Coordinator.cs
- DispatcherTimer.cs
- WebPartUtil.cs
- XD.cs
- AnyReturnReader.cs
- ResourcePool.cs
- sqlinternaltransaction.cs
- OptimizedTemplateContentHelper.cs
- TextServicesDisplayAttribute.cs
- DeliveryRequirementsAttribute.cs
- FreeFormDragDropManager.cs
- XmlWriter.cs
- DefaultValueTypeConverter.cs
- XmlLoader.cs
- IncrementalReadDecoders.cs
- AddressHeaderCollection.cs
- XmlSchemaProviderAttribute.cs
- CompModSwitches.cs
- ToolStripRenderEventArgs.cs
- WsdlInspector.cs
- BitmapEncoder.cs
- OperationAbortedException.cs
- BindingList.cs
- EdmType.cs
- SortKey.cs
- NativeMethods.cs
- unsafeIndexingFilterStream.cs
- RoleService.cs
- ExecutionEngineException.cs
- SortQuery.cs
- HttpListenerException.cs
- TimeoutStream.cs
- SmiMetaDataProperty.cs
- CompilationSection.cs
- WebServicesSection.cs
- Mapping.cs
- SettingsPropertyWrongTypeException.cs
- SQLInt32.cs
- DataGridTable.cs
- ContextMenu.cs
- LineSegment.cs
- CancellationHandlerDesigner.cs
- Rss20FeedFormatter.cs
- XmlName.cs
- XmlSerializerNamespaces.cs
- Attributes.cs
- Misc.cs
- PersonalizationProviderCollection.cs
- DataGridCommandEventArgs.cs
- ObservableDictionary.cs
- LifetimeServices.cs
- OperatingSystem.cs
- TextParagraphProperties.cs
- Button.cs
- RequestUriProcessor.cs
- OverrideMode.cs
- PersonalizableTypeEntry.cs
- TemplateBuilder.cs
- ResourceProperty.cs
- SpeechAudioFormatInfo.cs
- FileLevelControlBuilderAttribute.cs
- CodeCommentStatementCollection.cs
- HWStack.cs
- SynchronizationLockException.cs
- InputLangChangeEvent.cs
- NamedPipeProcessProtocolHandler.cs
- SqlCacheDependencyDatabase.cs
- SubstitutionResponseElement.cs
- FacetDescription.cs
- TrackingMemoryStream.cs
- TemplatePagerField.cs
- FullTrustAssembliesSection.cs
- TextTreeInsertElementUndoUnit.cs
- SkipQueryOptionExpression.cs
- PathFigure.cs
- ConfigXmlText.cs
- DefaultValueTypeConverter.cs
- SafeCryptoHandles.cs
- UrlMappingCollection.cs
- PrintPageEvent.cs
- TextEditorTables.cs
- GridViewColumnCollection.cs
- PeerNearMe.cs
- PagesSection.cs
- BaseAutoFormat.cs
- TransactionManager.cs
- TextTrailingWordEllipsis.cs
- BitmapEffectInputData.cs
- InputGestureCollection.cs
- GenericXmlSecurityToken.cs
- Marshal.cs
- SpellerInterop.cs
- TransactionInformation.cs
- CmsUtils.cs
- OleServicesContext.cs
- InputMethod.cs
- SerializationAttributes.cs
- DataGridViewLinkCell.cs
- DoubleCollection.cs