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
- TcpConnectionPoolSettingsElement.cs
- StreamHelper.cs
- ListViewUpdatedEventArgs.cs
- GenericAuthenticationEventArgs.cs
- DoubleUtil.cs
- MsiStyleLogWriter.cs
- XmlImplementation.cs
- ChannelManager.cs
- TypeElement.cs
- PreviewPageInfo.cs
- TextEditorParagraphs.cs
- EditorBrowsableAttribute.cs
- WebExceptionStatus.cs
- XmlReflectionImporter.cs
- TemplateControlBuildProvider.cs
- TaskFormBase.cs
- TagElement.cs
- BuildProvider.cs
- FormsAuthenticationEventArgs.cs
- HideDisabledControlAdapter.cs
- Panel.cs
- DataGridViewColumnEventArgs.cs
- MergablePropertyAttribute.cs
- Bitmap.cs
- FactoryGenerator.cs
- SqlDataSourceCache.cs
- XamlParser.cs
- FixedSchema.cs
- XmlSchemaInclude.cs
- SqlReferenceCollection.cs
- KnownTypes.cs
- ReferencedType.cs
- ServerIdentity.cs
- RegisteredDisposeScript.cs
- SQLInt64Storage.cs
- FixUp.cs
- WindowsBrush.cs
- MergeFilterQuery.cs
- BitmapEffectGroup.cs
- TextTrailingWordEllipsis.cs
- BulletDecorator.cs
- MenuItemCollection.cs
- COAUTHINFO.cs
- XPathPatternBuilder.cs
- BaseDataList.cs
- HandlerFactoryCache.cs
- EntitySet.cs
- SqlDataSourceView.cs
- PropertyKey.cs
- OuterGlowBitmapEffect.cs
- BinaryFormatter.cs
- MutexSecurity.cs
- RuntimeVariablesExpression.cs
- ArgumentValue.cs
- FullTrustAssembliesSection.cs
- HttpWebResponse.cs
- MessageQueuePermissionEntry.cs
- ObjectTokenCategory.cs
- FrameworkRichTextComposition.cs
- ObjectListFieldCollection.cs
- WmlLabelAdapter.cs
- XmlSchemaChoice.cs
- ScriptResourceInfo.cs
- TypedReference.cs
- FragmentQueryProcessor.cs
- SerializationEventsCache.cs
- MessageEncoder.cs
- MouseGesture.cs
- CommonDialog.cs
- GlobalizationAssembly.cs
- SubqueryRules.cs
- AttachedPropertyMethodSelector.cs
- TabControlToolboxItem.cs
- NetworkStream.cs
- EncryptedKey.cs
- XmlWrappingReader.cs
- WebPartVerbsEventArgs.cs
- SafeBitVector32.cs
- XmlException.cs
- Util.cs
- InputLangChangeRequestEvent.cs
- WinInetCache.cs
- Helper.cs
- PenContexts.cs
- XmlDataSourceNodeDescriptor.cs
- MultiTrigger.cs
- RuntimeCompatibilityAttribute.cs
- DesignObjectWrapper.cs
- XpsSerializerWriter.cs
- CallContext.cs
- WorkerRequest.cs
- MenuAdapter.cs
- DocumentSequence.cs
- OutputWindow.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- FieldToken.cs
- SqlBooleanMismatchVisitor.cs
- MailAddress.cs
- CalendarDay.cs
- XmlCharCheckingReader.cs