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
- ValidationResult.cs
- InfocardChannelParameter.cs
- XmlDataDocument.cs
- base64Transforms.cs
- DataServiceRequestOfT.cs
- ControlCodeDomSerializer.cs
- SessionPageStateSection.cs
- Debug.cs
- Marshal.cs
- HttpWebResponse.cs
- PerfService.cs
- webproxy.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- OrderByQueryOptionExpression.cs
- TextRangeSerialization.cs
- SafeNativeMethods.cs
- Descriptor.cs
- BitmapMetadataEnumerator.cs
- ClientData.cs
- PictureBox.cs
- TreeViewCancelEvent.cs
- ScrollEvent.cs
- ActivitySurrogateSelector.cs
- ColumnMapTranslator.cs
- ScriptingProfileServiceSection.cs
- LabelEditEvent.cs
- DataControlPagerLinkButton.cs
- DataServiceRequest.cs
- WebPartDeleteVerb.cs
- XamlPoint3DCollectionSerializer.cs
- StylusButtonEventArgs.cs
- CaseExpr.cs
- UInt32Converter.cs
- PropertyPushdownHelper.cs
- PathGradientBrush.cs
- SystemResourceKey.cs
- ObjectDataProvider.cs
- TraceData.cs
- Viewport2DVisual3D.cs
- SynchronousSendBindingElement.cs
- EmptyStringExpandableObjectConverter.cs
- TimerElapsedEvenArgs.cs
- PlatformNotSupportedException.cs
- SoapIgnoreAttribute.cs
- UserUseLicenseDictionaryLoader.cs
- SchemaCompiler.cs
- HttpDictionary.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Calendar.cs
- ToolStripContainer.cs
- FlatButtonAppearance.cs
- RichListBox.cs
- RoleService.cs
- SecurityTokenAuthenticator.cs
- DynamicObjectAccessor.cs
- TableRowCollection.cs
- Base64Decoder.cs
- DataBoundLiteralControl.cs
- CompositeDesignerAccessibleObject.cs
- DocumentApplicationDocumentViewer.cs
- CardSpaceException.cs
- HuffmanTree.cs
- WebHttpSecurityElement.cs
- CultureTableRecord.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SafePEFileHandle.cs
- SecurityResources.cs
- XmlSchema.cs
- DetailsViewDeleteEventArgs.cs
- RepeaterCommandEventArgs.cs
- TextTreeTextBlock.cs
- RoutingSection.cs
- PasswordRecovery.cs
- ResXFileRef.cs
- UInt16.cs
- CollectionViewProxy.cs
- PiiTraceSource.cs
- ExpressionBuilder.cs
- ParameterBuilder.cs
- CodeCommentStatement.cs
- Avt.cs
- TypeInfo.cs
- DSASignatureFormatter.cs
- Encoder.cs
- Semaphore.cs
- HttpServerUtilityWrapper.cs
- PermissionSetEnumerator.cs
- TextTreeInsertUndoUnit.cs
- TextClipboardData.cs
- ProgressChangedEventArgs.cs
- SamlSubject.cs
- input.cs
- FormViewInsertedEventArgs.cs
- BamlRecordWriter.cs
- CacheMode.cs
- XmlCharCheckingWriter.cs
- PaperSize.cs
- CodeRegionDirective.cs
- TextTreeDeleteContentUndoUnit.cs
- MobileControlDesigner.cs