Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeDelegateCreateExpression.cs / 1305376 / 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
- CategoryAttribute.cs
- ExpressionBindings.cs
- RectKeyFrameCollection.cs
- ToolStripControlHost.cs
- GB18030Encoding.cs
- XmlDocumentFragment.cs
- ClockGroup.cs
- BindableAttribute.cs
- GeneralTransform3DTo2DTo3D.cs
- BrowserCapabilitiesCompiler.cs
- XmlKeywords.cs
- WinEventWrap.cs
- PixelFormats.cs
- StackOverflowException.cs
- LogRestartAreaEnumerator.cs
- WebPartRestoreVerb.cs
- WebDisplayNameAttribute.cs
- ZoneButton.cs
- HScrollProperties.cs
- ImageIndexEditor.cs
- Condition.cs
- SupportsEventValidationAttribute.cs
- AdPostCacheSubstitution.cs
- XAMLParseException.cs
- PropertyRecord.cs
- XmlDocumentSurrogate.cs
- HeaderElement.cs
- SqlDataSource.cs
- DateTimeOffsetConverter.cs
- MappingException.cs
- UserPreferenceChangingEventArgs.cs
- WebPartUserCapability.cs
- _BasicClient.cs
- SafeNativeMethods.cs
- RichTextBoxAutomationPeer.cs
- NameValueFileSectionHandler.cs
- RemotingAttributes.cs
- CommonEndpointBehaviorElement.cs
- CollectionChangeEventArgs.cs
- serverconfig.cs
- _ListenerAsyncResult.cs
- TextServicesDisplayAttribute.cs
- CorrelationResolver.cs
- NamedPermissionSet.cs
- SmiEventSink.cs
- X509CertificateEndpointIdentity.cs
- FixedTextView.cs
- ToolStripButton.cs
- Documentation.cs
- CounterCreationData.cs
- InputDevice.cs
- QueryCacheManager.cs
- BamlVersionHeader.cs
- EnglishPluralizationService.cs
- PostBackTrigger.cs
- TreeViewHitTestInfo.cs
- EdmFunctionAttribute.cs
- BamlRecords.cs
- ColorKeyFrameCollection.cs
- WeakHashtable.cs
- PathFigureCollection.cs
- HtmlInputReset.cs
- itemelement.cs
- WeakHashtable.cs
- Pointer.cs
- AdCreatedEventArgs.cs
- Process.cs
- hwndwrapper.cs
- FolderLevelBuildProvider.cs
- IisTraceWebEventProvider.cs
- VerificationException.cs
- DatatypeImplementation.cs
- BitmapEffect.cs
- ExtensionQuery.cs
- FontDialog.cs
- PopOutPanel.cs
- ChtmlTextBoxAdapter.cs
- _ChunkParse.cs
- DesignerForm.cs
- CurrentChangingEventManager.cs
- DynamicResourceExtensionConverter.cs
- DataRowCollection.cs
- PrintingPermissionAttribute.cs
- PointValueSerializer.cs
- RawMouseInputReport.cs
- XpsResourcePolicy.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataBinding.cs
- Light.cs
- ValidationErrorCollection.cs
- MessageOperationFormatter.cs
- PrimaryKeyTypeConverter.cs
- OrthographicCamera.cs
- StylusCaptureWithinProperty.cs
- DynamicObject.cs
- TableDetailsCollection.cs
- DecimalAnimation.cs
- TypeForwardedToAttribute.cs
- ObjectParameterCollection.cs
- NextPreviousPagerField.cs