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(NodeList propDefList)
{
this._propDefList = propDefList;
}
///
/// Returns property definitions.
///
internal NodeList Properties
{
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(NodeList propDefList)
{
this._propDefList = propDefList;
}
///
/// Returns property definitions.
///
internal NodeList Properties
{
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
- GenericsInstances.cs
- MachineKeyConverter.cs
- UIElementParaClient.cs
- DataServiceRequestOfT.cs
- SecurityProtocolCorrelationState.cs
- AssemblyAttributes.cs
- SafeBuffer.cs
- MetadataItemEmitter.cs
- XmlDocument.cs
- DataView.cs
- VarInfo.cs
- ECDsa.cs
- ToolStripSplitStackLayout.cs
- AuthenticationException.cs
- HttpResponse.cs
- PrinterUnitConvert.cs
- DoubleLinkList.cs
- XamlTypeMapperSchemaContext.cs
- Encoding.cs
- DuplicateWaitObjectException.cs
- DesignerActionPanel.cs
- HashRepartitionStream.cs
- ProfileInfo.cs
- NonSerializedAttribute.cs
- StylusPointPropertyInfoDefaults.cs
- CallContext.cs
- SQLInt32.cs
- IntSecurity.cs
- StorageMappingItemLoader.cs
- SoundPlayer.cs
- UriWriter.cs
- InstanceCollisionException.cs
- ServiceNameElementCollection.cs
- COM2TypeInfoProcessor.cs
- StrokeCollection2.cs
- CustomAttributeFormatException.cs
- DesignerActionListCollection.cs
- ZipIOBlockManager.cs
- FixedTextContainer.cs
- QueryContinueDragEvent.cs
- HostingPreferredMapPath.cs
- XamlSerializer.cs
- QilPatternFactory.cs
- GiveFeedbackEventArgs.cs
- JournalEntryListConverter.cs
- RijndaelCryptoServiceProvider.cs
- SkewTransform.cs
- StackBuilderSink.cs
- XmlSchemaSimpleTypeUnion.cs
- MediaContext.cs
- HttpResponseInternalWrapper.cs
- EmptyStringExpandableObjectConverter.cs
- StoreItemCollection.cs
- KeyInstance.cs
- MemberAccessException.cs
- HashRepartitionStream.cs
- Listbox.cs
- DataGridViewComboBoxCell.cs
- SingleObjectCollection.cs
- ContainerSelectorGlyph.cs
- MailDefinitionBodyFileNameEditor.cs
- Matrix3DValueSerializer.cs
- XmlWellformedWriter.cs
- EventProxy.cs
- GPRECT.cs
- SqlDataSourceTableQuery.cs
- BindingsCollection.cs
- DataBoundControl.cs
- SchemaMapping.cs
- CodeSnippetStatement.cs
- ApplicationInfo.cs
- PropertyItem.cs
- DeploymentSection.cs
- DefaultClaimSet.cs
- Function.cs
- FunctionNode.cs
- CipherData.cs
- FlowLayoutPanel.cs
- CacheRequest.cs
- ScrollableControl.cs
- ParseChildrenAsPropertiesAttribute.cs
- SolidColorBrush.cs
- ScriptComponentDescriptor.cs
- CustomAttribute.cs
- HtmlTextBoxAdapter.cs
- sortedlist.cs
- VerificationException.cs
- UniqueConstraint.cs
- ConfigurationPropertyCollection.cs
- CookielessHelper.cs
- LogWriteRestartAreaState.cs
- DescendantQuery.cs
- OdbcReferenceCollection.cs
- FrameSecurityDescriptor.cs
- UIPermission.cs
- HttpCapabilitiesBase.cs
- TPLETWProvider.cs
- ListViewTableRow.cs
- TextWriterTraceListener.cs
- XmlExtensionFunction.cs