Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / Microsoft / Scripting / Ast / MemberBinding.cs / 1305376 / MemberBinding.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.Reflection; namespace System.Linq.Expressions { ////// Describes the binding types that are used in MemberInitExpression objects. /// public enum MemberBindingType { ////// A binding that represents initializing a member with the value of an expression. /// Assignment, ////// A binding that represents recursively initializing members of a member. /// MemberBinding, ////// A binding that represents initializing a member of type ListBinding } ///or from a list of elements. /// /// Provides the base class from which the classes that represent bindings that are used to initialize members of a newly created object derive. /// public abstract class MemberBinding { MemberBindingType _type; MemberInfo _member; ////// Initializes an instance of /// The type of member binding. /// The field or property to be initialized. [Obsolete("Do not use this constructor. It will be removed in future releases.")] protected MemberBinding(MemberBindingType type, MemberInfo member) { _type = type; _member = member; } ///class. /// /// Gets the type of binding that is represented. /// public MemberBindingType BindingType { get { return _type; } } ////// Gets the field or property to be initialized. /// public MemberInfo Member { get { return _member; } } ////// Returns a ///that represents the current . /// A public override string ToString() { return ExpressionStringBuilder.MemberBindingToString(this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /* **************************************************************************** * * 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.Reflection; namespace System.Linq.Expressions { ///that represents the current . /// Describes the binding types that are used in MemberInitExpression objects. /// public enum MemberBindingType { ////// A binding that represents initializing a member with the value of an expression. /// Assignment, ////// A binding that represents recursively initializing members of a member. /// MemberBinding, ////// A binding that represents initializing a member of type ListBinding } ///or from a list of elements. /// /// Provides the base class from which the classes that represent bindings that are used to initialize members of a newly created object derive. /// public abstract class MemberBinding { MemberBindingType _type; MemberInfo _member; ////// Initializes an instance of /// The type of member binding. /// The field or property to be initialized. [Obsolete("Do not use this constructor. It will be removed in future releases.")] protected MemberBinding(MemberBindingType type, MemberInfo member) { _type = type; _member = member; } ///class. /// /// Gets the type of binding that is represented. /// public MemberBindingType BindingType { get { return _type; } } ////// Gets the field or property to be initialized. /// public MemberInfo Member { get { return _member; } } ////// Returns a ///that represents the current . /// A public override string ToString() { return ExpressionStringBuilder.MemberBindingToString(this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.that represents the current .
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PartialCachingControl.cs
- EntityConnection.cs
- UnknownWrapper.cs
- XmlLoader.cs
- ColumnMapVisitor.cs
- Span.cs
- AddInBase.cs
- DesignerCalendarAdapter.cs
- FieldTemplateUserControl.cs
- validationstate.cs
- SpecularMaterial.cs
- IgnorePropertiesAttribute.cs
- GroupByExpressionRewriter.cs
- VarRemapper.cs
- DataSourceHelper.cs
- CustomValidator.cs
- Activity.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- MsmqProcessProtocolHandler.cs
- OleTxTransactionInfo.cs
- OleDbPermission.cs
- DataControlLinkButton.cs
- BitmapEffectCollection.cs
- Int16Animation.cs
- FunctionUpdateCommand.cs
- BitmapImage.cs
- SafeHandles.cs
- MenuItem.cs
- DataGridViewCellStateChangedEventArgs.cs
- WindowsFormsHostPropertyMap.cs
- FunctionOverloadResolver.cs
- Number.cs
- EventBuilder.cs
- String.cs
- SafeArrayRankMismatchException.cs
- SqlMethods.cs
- XmlSerializerAssemblyAttribute.cs
- UnsafeNativeMethods.cs
- UIElementIsland.cs
- UnknownWrapper.cs
- IndexedString.cs
- WsdlImporter.cs
- NavigationWindow.cs
- StretchValidation.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- TableSectionStyle.cs
- CodeCompiler.cs
- SamlAudienceRestrictionCondition.cs
- BindingsCollection.cs
- SizeFConverter.cs
- PngBitmapDecoder.cs
- Visual3D.cs
- HtmlElementEventArgs.cs
- PenLineJoinValidation.cs
- DataObjectMethodAttribute.cs
- ExitEventArgs.cs
- TransformerConfigurationWizardBase.cs
- FilterEventArgs.cs
- GenerateTemporaryTargetAssembly.cs
- TrustManager.cs
- LineSegment.cs
- RuntimeHelpers.cs
- PropertyGridView.cs
- WsdlInspector.cs
- SmiEventSink.cs
- IncrementalReadDecoders.cs
- _ConnectStream.cs
- RegistrySecurity.cs
- LicenseManager.cs
- PropertyGeneratedEventArgs.cs
- hwndwrapper.cs
- BaseTemplateParser.cs
- Utilities.cs
- FormConverter.cs
- TypeDescriptorFilterService.cs
- HexParser.cs
- ProxyHelper.cs
- Util.cs
- FilterQueryOptionExpression.cs
- ThemeableAttribute.cs
- ListViewInsertedEventArgs.cs
- DataBoundControlHelper.cs
- OracleException.cs
- CharEntityEncoderFallback.cs
- AvtEvent.cs
- _Events.cs
- Root.cs
- ObservableCollection.cs
- TextParagraph.cs
- CompiledXpathExpr.cs
- PropertyMetadata.cs
- InkCanvasInnerCanvas.cs
- TextBlock.cs
- Point4DValueSerializer.cs
- X509ServiceCertificateAuthentication.cs
- ForwardPositionQuery.cs
- DbgUtil.cs
- VariableDesigner.xaml.cs
- SerializationInfo.cs
- UIElement3D.cs