Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / Microsoft / Scripting / Ast / DefaultExpression.cs / 1305376 / DefaultExpression.cs
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Microsoft Public License. A * copy of the license can be found in the License.html file at the root of this distribution. If * you cannot locate the Microsoft Public License, please send an email to * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound * by the terms of the Microsoft Public License. * * You must not remove this notice, or any other, from this software. * * * ***************************************************************************/ using System.Diagnostics; namespace System.Linq.Expressions { ////// Represents the default value of a type or an empty expression. /// #if !SILVERLIGHT [DebuggerTypeProxy(typeof(Expression.DefaultExpressionProxy))] #endif public sealed class DefaultExpression : Expression { private readonly Type _type; internal DefaultExpression(Type type) { _type = type; } ////// Gets the static type of the expression that this ///represents. /// The public sealed override Type Type { get { return _type; } } ///that represents the static type of the expression. /// Returns the node type of this Expression. Extension nodes should return /// ExpressionType.Extension when overriding this method. /// ///The public sealed override ExpressionType NodeType { get { return ExpressionType.Default; } } ///of the expression. /// Dispatches to the specific visit method for this node type. /// protected internal override Expression Accept(ExpressionVisitor visitor) { return visitor.VisitDefault(this); } } public partial class Expression { ////// Creates an empty expression that has ///type. /// /// A public static DefaultExpression Empty() { return new DefaultExpression(typeof(void)); } ///that has the property equal to /// and the property set to . /// /// Creates a /// Athat has the property set to the specified type. /// to set the property equal to. /// /// A public static DefaultExpression Default(Type type) { if (type == typeof(void)) { return Empty(); } return new DefaultExpression(type); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.that has the property equal to /// and the property set to the specified type. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StandardBindingImporter.cs
- SerializerProvider.cs
- TTSEngineProxy.cs
- MergeLocalizationDirectives.cs
- AccessDataSourceWizardForm.cs
- DelegateTypeInfo.cs
- UnsafeMethods.cs
- ScriptDescriptor.cs
- AttachmentService.cs
- EFDataModelProvider.cs
- CodeDelegateCreateExpression.cs
- SmtpLoginAuthenticationModule.cs
- COM2ExtendedBrowsingHandler.cs
- FindSimilarActivitiesVerb.cs
- ResourceDisplayNameAttribute.cs
- RSAOAEPKeyExchangeFormatter.cs
- SQLInt16Storage.cs
- Compiler.cs
- TickBar.cs
- XmlBoundElement.cs
- wgx_sdk_version.cs
- Route.cs
- DbProviderFactoriesConfigurationHandler.cs
- XmlSchemaSubstitutionGroup.cs
- Rect3DValueSerializer.cs
- Calendar.cs
- MetadataItemSerializer.cs
- BitmapEffectGroup.cs
- InvokeHandlers.cs
- LinqDataSourceView.cs
- ThicknessAnimationBase.cs
- EntityContainer.cs
- ModelMemberCollection.cs
- UMPAttributes.cs
- PageContent.cs
- UnsafeNativeMethods.cs
- RegistrySecurity.cs
- BufferBuilder.cs
- Command.cs
- PrintPreviewDialog.cs
- BaseHashHelper.cs
- TextTreeInsertUndoUnit.cs
- Substitution.cs
- PrimitiveCodeDomSerializer.cs
- ConstraintStruct.cs
- SqlDataSourceCache.cs
- TablePattern.cs
- BindingsCollection.cs
- OutputCacheEntry.cs
- LinqDataView.cs
- TransformProviderWrapper.cs
- EntityConnection.cs
- ExpressionContext.cs
- EntityDataSourceSelectedEventArgs.cs
- ProcessProtocolHandler.cs
- ProxyFragment.cs
- OleDbEnumerator.cs
- BuildTopDownAttribute.cs
- PropVariant.cs
- OptimalTextSource.cs
- TileBrush.cs
- TaskFormBase.cs
- SqlConnectionFactory.cs
- ResourceDictionary.cs
- HMACSHA256.cs
- BehaviorEditorPart.cs
- PersianCalendar.cs
- WebUtil.cs
- regiisutil.cs
- SqlInternalConnection.cs
- TileBrush.cs
- MarkupProperty.cs
- InputQueue.cs
- PagedDataSource.cs
- RoleServiceManager.cs
- CqlBlock.cs
- Attributes.cs
- AnimatedTypeHelpers.cs
- TextRangeEdit.cs
- ViewManager.cs
- TripleDESCryptoServiceProvider.cs
- ListItemParagraph.cs
- HttpDictionary.cs
- IItemContainerGenerator.cs
- XamlToRtfWriter.cs
- ImageListUtils.cs
- NullEntityWrapper.cs
- SimpleApplicationHost.cs
- AutomationProperties.cs
- ObfuscationAttribute.cs
- MailDefinition.cs
- _CacheStreams.cs
- RunInstallerAttribute.cs
- AccessDataSource.cs
- ValidationRule.cs
- SqlParameterizer.cs
- NetworkAddressChange.cs
- XmlDataImplementation.cs
- BindingElementExtensionElement.cs
- FontNameEditor.cs