Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- VoiceObjectToken.cs
- TransformGroup.cs
- ExtenderHelpers.cs
- TextTreeTextBlock.cs
- PersistenceTypeAttribute.cs
- PtsContext.cs
- GridView.cs
- XmlQualifiedName.cs
- Axis.cs
- HiddenFieldPageStatePersister.cs
- WebControl.cs
- SafeNativeMemoryHandle.cs
- NodeFunctions.cs
- ErrorHandlingAcceptor.cs
- X509CertificateRecipientClientCredential.cs
- EFAssociationProvider.cs
- CompositeCollectionView.cs
- Bidi.cs
- XmlSortKeyAccumulator.cs
- GPPOINTF.cs
- Empty.cs
- UnsafeNativeMethods.cs
- FindCriteria11.cs
- Visitor.cs
- ListViewItemEventArgs.cs
- PlacementWorkspace.cs
- CompilerInfo.cs
- ImplicitInputBrush.cs
- BrowserCapabilitiesFactory35.cs
- DataGridComboBoxColumn.cs
- FixedTextSelectionProcessor.cs
- RefExpr.cs
- AssociationSet.cs
- formatter.cs
- ToolStripItemImageRenderEventArgs.cs
- BrowserCapabilitiesCompiler.cs
- XmlSerializationReader.cs
- SpeechEvent.cs
- ConditionCollection.cs
- DESCryptoServiceProvider.cs
- BuildProviderUtils.cs
- NamedPipeHostedTransportConfiguration.cs
- TableParagraph.cs
- ImageKeyConverter.cs
- CodeObject.cs
- TypeBuilderInstantiation.cs
- RegexInterpreter.cs
- ConfigXmlWhitespace.cs
- Journal.cs
- MimeTypeMapper.cs
- TransformedBitmap.cs
- TextFormatter.cs
- HtmlInputSubmit.cs
- AccessibleObject.cs
- CodeAttachEventStatement.cs
- HttpApplication.cs
- HtmlInputPassword.cs
- ToolStripSplitButton.cs
- _RequestCacheProtocol.cs
- XsltLoader.cs
- ProcessHostServerConfig.cs
- NodeFunctions.cs
- Regex.cs
- CodeValidator.cs
- BuildResultCache.cs
- Utils.cs
- SplineKeyFrames.cs
- DataReceivedEventArgs.cs
- XamlWrappingReader.cs
- TextCompositionManager.cs
- ClientApiGenerator.cs
- SigningCredentials.cs
- Int16AnimationBase.cs
- RoutingSection.cs
- DataShape.cs
- SqlInternalConnection.cs
- CodeAttributeDeclarationCollection.cs
- RelationHandler.cs
- HttpCapabilitiesEvaluator.cs
- Repeater.cs
- SubMenuStyle.cs
- ExpressionBindingCollection.cs
- SoapFormatterSinks.cs
- DesignerTransactionCloseEvent.cs
- Int32Storage.cs
- RayMeshGeometry3DHitTestResult.cs
- Rotation3DAnimationBase.cs
- ChannelManagerService.cs
- IteratorFilter.cs
- regiisutil.cs
- SqlDataReader.cs
- DelimitedListTraceListener.cs
- CustomValidator.cs
- mda.cs
- BaseTransportHeaders.cs
- HwndTarget.cs
- UiaCoreTypesApi.cs
- MissingMethodException.cs
- XhtmlBasicValidationSummaryAdapter.cs
- GenericsInstances.cs