Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / CodeDOM / CodeDelegateCreateExpression.cs / 1 / CodeDelegateCreateExpression.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents a delegate creation expression.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeDelegateCreateExpression : CodeExpression {
private CodeTypeReference delegateType;
private CodeExpression targetObject;
private string methodName;
///
///
/// Initializes a new instance of .
///
///
public CodeDelegateCreateExpression() {
}
///
///
/// Initializes a new instance of .
///
///
public CodeDelegateCreateExpression(CodeTypeReference delegateType, CodeExpression targetObject, string methodName) {
this.delegateType = delegateType;
this.targetObject = targetObject;
this.methodName = methodName;
}
///
///
/// Gets or sets the delegate type.
///
///
public CodeTypeReference DelegateType {
get {
if (delegateType == null) {
delegateType = new CodeTypeReference("");
}
return delegateType;
}
set {
delegateType = value;
}
}
///
///
/// Gets or sets the target object.
///
///
public CodeExpression TargetObject {
get {
return targetObject;
}
set {
targetObject = value;
}
}
///
///
/// Gets or sets the method name.
///
///
public string MethodName {
get {
return (methodName == null) ? string.Empty : methodName;
}
set {
methodName = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents a delegate creation expression.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeDelegateCreateExpression : CodeExpression {
private CodeTypeReference delegateType;
private CodeExpression targetObject;
private string methodName;
///
///
/// Initializes a new instance of .
///
///
public CodeDelegateCreateExpression() {
}
///
///
/// Initializes a new instance of .
///
///
public CodeDelegateCreateExpression(CodeTypeReference delegateType, CodeExpression targetObject, string methodName) {
this.delegateType = delegateType;
this.targetObject = targetObject;
this.methodName = methodName;
}
///
///
/// Gets or sets the delegate type.
///
///
public CodeTypeReference DelegateType {
get {
if (delegateType == null) {
delegateType = new CodeTypeReference("");
}
return delegateType;
}
set {
delegateType = value;
}
}
///
///
/// Gets or sets the target object.
///
///
public CodeExpression TargetObject {
get {
return targetObject;
}
set {
targetObject = value;
}
}
///
///
/// Gets or sets the method name.
///
///
public string MethodName {
get {
return (methodName == null) ? string.Empty : methodName;
}
set {
methodName = value;
}
}
}
}
// 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
- LocatorBase.cs
- PlatformCulture.cs
- XmlSiteMapProvider.cs
- UnauthorizedAccessException.cs
- CreateUserWizardStep.cs
- ValueConversionAttribute.cs
- HttpPostedFile.cs
- HttpStreams.cs
- UpDownBase.cs
- DataGridItemCollection.cs
- StylusButtonCollection.cs
- RouteUrlExpressionBuilder.cs
- ClientSettingsSection.cs
- CharEntityEncoderFallback.cs
- Substitution.cs
- MappingModelBuildProvider.cs
- StrokeSerializer.cs
- MaskedTextBoxTextEditor.cs
- EncryptedKey.cs
- IRCollection.cs
- TdsParserHelperClasses.cs
- SqlExpander.cs
- Comparer.cs
- ReferentialConstraint.cs
- SimpleBitVector32.cs
- DetailsViewDeleteEventArgs.cs
- FrugalList.cs
- ControlAdapter.cs
- XmlAttributeOverrides.cs
- CompiledRegexRunnerFactory.cs
- ProgressBarHighlightConverter.cs
- MsmqChannelFactoryBase.cs
- DoubleStorage.cs
- BoundField.cs
- TiffBitmapDecoder.cs
- WebPartVerbsEventArgs.cs
- SQLRoleProvider.cs
- ComAdminWrapper.cs
- AmbiguousMatchException.cs
- BaseCodePageEncoding.cs
- DataServices.cs
- SerTrace.cs
- SharedConnectionInfo.cs
- ValidationError.cs
- SignerInfo.cs
- DateTimeConstantAttribute.cs
- WebPartChrome.cs
- RadioButtonDesigner.cs
- StackOverflowException.cs
- objectquery_tresulttype.cs
- BevelBitmapEffect.cs
- UntrustedRecipientException.cs
- _LoggingObject.cs
- AlternateViewCollection.cs
- Misc.cs
- WindowsServiceCredential.cs
- MethodCallExpression.cs
- EnlistmentState.cs
- BitmapEffectvisualstate.cs
- WsatServiceAddress.cs
- RootBrowserWindowProxy.cs
- ThreadLocal.cs
- SqlGatherConsumedAliases.cs
- configsystem.cs
- DBAsyncResult.cs
- RoleGroup.cs
- RuntimeHandles.cs
- DSASignatureFormatter.cs
- XmlSchemaValidationException.cs
- TypedDatasetGenerator.cs
- mediapermission.cs
- XmlNamespaceManager.cs
- WhereaboutsReader.cs
- ScrollChangedEventArgs.cs
- CallbackCorrelationInitializer.cs
- CommandHelper.cs
- OleDbConnectionFactory.cs
- StandardBindingImporter.cs
- SoapAttributes.cs
- LZCodec.cs
- BodyWriter.cs
- OracleException.cs
- ToolBarOverflowPanel.cs
- SecurityKeyType.cs
- FileDialogPermission.cs
- FixedDSBuilder.cs
- _SingleItemRequestCache.cs
- GlyphCache.cs
- ManagementOptions.cs
- SchemaConstraints.cs
- DBAsyncResult.cs
- ParameterCollection.cs
- LayoutUtils.cs
- TransformedBitmap.cs
- XmlSchemaInfo.cs
- Crypto.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- WebBrowserContainer.cs
- CatalogZoneDesigner.cs
- AnnotationComponentManager.cs