Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / UntypedNullExpression.cs / 1 / UntypedNullExpression.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....], [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Data.Metadata.Edm;
using System.Data.Common.CommandTrees;
namespace System.Data.Common.EntitySql
{
///
/// Represents an untyped null.
///
internal sealed class UntypedNullExpression : DbExpression
{
internal UntypedNullExpression( DbCommandTree commandTree )
: base( commandTree, DbExpressionKind.Null )
{
this.ResultType = TypeUsage.NullType;
}
///
/// The visitor pattern method for expression visitors that do not produce a result value.
///
/// An instance of DbExpressionVisitor.
public override void Accept( DbExpressionVisitor visitor )
{
throw EntityUtil.NotSupported();
}
///
/// The visitor pattern method for expression visitors that produce a result value of a specific type.
///
/// An instance of a typed DbExpressionVisitor that produces a result value of type TResultType.
public override T Accept( DbExpressionVisitor visitor )
{
throw EntityUtil.NotSupported();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....], [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Data.Metadata.Edm;
using System.Data.Common.CommandTrees;
namespace System.Data.Common.EntitySql
{
///
/// Represents an untyped null.
///
internal sealed class UntypedNullExpression : DbExpression
{
internal UntypedNullExpression( DbCommandTree commandTree )
: base( commandTree, DbExpressionKind.Null )
{
this.ResultType = TypeUsage.NullType;
}
///
/// The visitor pattern method for expression visitors that do not produce a result value.
///
/// An instance of DbExpressionVisitor.
public override void Accept( DbExpressionVisitor visitor )
{
throw EntityUtil.NotSupported();
}
///
/// The visitor pattern method for expression visitors that produce a result value of a specific type.
///
/// An instance of a typed DbExpressionVisitor that produces a result value of type TResultType.
public override T Accept( DbExpressionVisitor visitor )
{
throw EntityUtil.NotSupported();
}
}
}
// 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
- EdmToObjectNamespaceMap.cs
- Number.cs
- RouteItem.cs
- ObjectReferenceStack.cs
- FormParameter.cs
- XmlSchemaChoice.cs
- UnmanagedHandle.cs
- MsmqIntegrationOutputChannel.cs
- AppDomainShutdownMonitor.cs
- CodeArrayCreateExpression.cs
- HttpRequest.cs
- HtmlContainerControl.cs
- PagesChangedEventArgs.cs
- EventWaitHandle.cs
- PrefixQName.cs
- SafeReversePInvokeHandle.cs
- Bitmap.cs
- BackStopAuthenticationModule.cs
- MemberAssignmentAnalysis.cs
- FormsIdentity.cs
- LinkedList.cs
- DurableMessageDispatchInspector.cs
- SqlBooleanizer.cs
- ListViewItem.cs
- GACMembershipCondition.cs
- CharacterShapingProperties.cs
- ServiceParser.cs
- ScriptReferenceBase.cs
- _BufferOffsetSize.cs
- DockEditor.cs
- FocusChangedEventArgs.cs
- DesignerAdapterAttribute.cs
- LookupBindingPropertiesAttribute.cs
- Polyline.cs
- EasingQuaternionKeyFrame.cs
- MailAddress.cs
- RegexGroupCollection.cs
- RectIndependentAnimationStorage.cs
- Config.cs
- Clause.cs
- GeometryCombineModeValidation.cs
- TypeSystemProvider.cs
- Matrix.cs
- IProvider.cs
- MethodBuilder.cs
- NamespaceExpr.cs
- EventItfInfo.cs
- ToolboxComponentsCreatingEventArgs.cs
- Setter.cs
- UnsettableComboBox.cs
- OracleColumn.cs
- IisTraceWebEventProvider.cs
- FilterableData.cs
- ErrorWebPart.cs
- HostedTransportConfigurationBase.cs
- MenuItem.cs
- FixedFlowMap.cs
- XhtmlTextWriter.cs
- InheritanceContextHelper.cs
- EdmProperty.cs
- SmiRecordBuffer.cs
- FontFamily.cs
- GridEntry.cs
- ConnectivityStatus.cs
- MetadataUtilsSmi.cs
- KerberosReceiverSecurityToken.cs
- RadioButton.cs
- InstanceHandleConflictException.cs
- ResXResourceReader.cs
- AlternateView.cs
- PolicyManager.cs
- TraceSection.cs
- NullableIntMinMaxAggregationOperator.cs
- DataGridViewMethods.cs
- ParseNumbers.cs
- EventSinkHelperWriter.cs
- XmlReaderSettings.cs
- UInt32.cs
- OrderedDictionaryStateHelper.cs
- Axis.cs
- WindowsGraphics2.cs
- TransformPatternIdentifiers.cs
- _LazyAsyncResult.cs
- Currency.cs
- ConfigsHelper.cs
- TableCell.cs
- AsyncOperation.cs
- ConfigurationManagerInternal.cs
- ObjectStateManager.cs
- MailWebEventProvider.cs
- Panel.cs
- ActivationServices.cs
- SqlErrorCollection.cs
- DrawingContextDrawingContextWalker.cs
- StaticTextPointer.cs
- LocalizabilityAttribute.cs
- ExpressionBinding.cs
- AppDomainGrammarProxy.cs
- DBNull.cs
- DataObjectEventArgs.cs