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; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeDelegateCreateExpression : CodeExpression { private CodeTypeReference delegateType; private CodeExpression targetObject; private string methodName; ////// Represents a delegate creation expression. /// ////// public CodeDelegateCreateExpression() { } ////// Initializes a new instance of ///. /// /// public CodeDelegateCreateExpression(CodeTypeReference delegateType, CodeExpression targetObject, string methodName) { this.delegateType = delegateType; this.targetObject = targetObject; this.methodName = methodName; } ////// Initializes a new instance of ///. /// /// public CodeTypeReference DelegateType { get { if (delegateType == null) { delegateType = new CodeTypeReference(""); } return delegateType; } set { delegateType = value; } } ////// Gets or sets the delegate type. /// ////// public CodeExpression TargetObject { get { return targetObject; } set { targetObject = value; } } ////// Gets or sets the target object. /// ////// public string MethodName { get { return (methodName == null) ? string.Empty : methodName; } set { methodName = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets the method name. /// ///// 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; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeDelegateCreateExpression : CodeExpression { private CodeTypeReference delegateType; private CodeExpression targetObject; private string methodName; ////// Represents a delegate creation expression. /// ////// public CodeDelegateCreateExpression() { } ////// Initializes a new instance of ///. /// /// public CodeDelegateCreateExpression(CodeTypeReference delegateType, CodeExpression targetObject, string methodName) { this.delegateType = delegateType; this.targetObject = targetObject; this.methodName = methodName; } ////// Initializes a new instance of ///. /// /// public CodeTypeReference DelegateType { get { if (delegateType == null) { delegateType = new CodeTypeReference(""); } return delegateType; } set { delegateType = value; } } ////// Gets or sets the delegate type. /// ////// public CodeExpression TargetObject { get { return targetObject; } set { targetObject = value; } } ////// Gets or sets the target object. /// ////// public string MethodName { get { return (methodName == null) ? string.Empty : methodName; } set { methodName = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets the method name. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RoutedEventValueSerializer.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- X509IssuerSerialKeyIdentifierClause.cs
- IntranetCredentialPolicy.cs
- WebAdminConfigurationHelper.cs
- autovalidator.cs
- HasRunnableWorkflowEvent.cs
- ProcessThreadCollection.cs
- Number.cs
- FileSystemInfo.cs
- HttpModuleAction.cs
- indexingfiltermarshaler.cs
- FixedTextSelectionProcessor.cs
- TraceInternal.cs
- ProcessHostServerConfig.cs
- DecodeHelper.cs
- EventDrivenDesigner.cs
- EventEntry.cs
- EraserBehavior.cs
- EvidenceTypeDescriptor.cs
- TimeSpan.cs
- Function.cs
- Verify.cs
- FileRecordSequenceHelper.cs
- PostBackOptions.cs
- ByteStack.cs
- CheckBoxAutomationPeer.cs
- BitmapEffectGroup.cs
- WebPartZoneBaseDesigner.cs
- XamlTemplateSerializer.cs
- documentsequencetextpointer.cs
- AddingNewEventArgs.cs
- ListView.cs
- TaiwanLunisolarCalendar.cs
- ValuePattern.cs
- ProxySimple.cs
- CompatibleComparer.cs
- StructureChangedEventArgs.cs
- BitmapEffectrendercontext.cs
- RecognizedAudio.cs
- BasicExpressionVisitor.cs
- SqlMultiplexer.cs
- XmlDataSourceNodeDescriptor.cs
- RuntimeConfig.cs
- GridViewRowCollection.cs
- BorderGapMaskConverter.cs
- SourceChangedEventArgs.cs
- WebPartVerbCollection.cs
- PerfProviderCollection.cs
- ByteStorage.cs
- CodeSnippetCompileUnit.cs
- StylusDevice.cs
- ResolveNextArgumentWorkItem.cs
- FlowLayoutPanel.cs
- EntityDataSourceWrapperCollection.cs
- ScriptReference.cs
- Exceptions.cs
- ObjectDataSourceSelectingEventArgs.cs
- ListBoxChrome.cs
- WebPartCollection.cs
- CodeCatchClause.cs
- Thumb.cs
- KeyFrames.cs
- ContentOnlyMessage.cs
- OleDbSchemaGuid.cs
- DebugView.cs
- TreeNodeStyle.cs
- Literal.cs
- SettingsPropertyIsReadOnlyException.cs
- MediaTimeline.cs
- HttpDictionary.cs
- CodeAttributeArgumentCollection.cs
- SByteStorage.cs
- ClientBuildManagerCallback.cs
- Label.cs
- MonthChangedEventArgs.cs
- BuilderInfo.cs
- NonVisualControlAttribute.cs
- EdgeProfileValidation.cs
- CompiledRegexRunner.cs
- RuntimeResourceSet.cs
- SqlTransaction.cs
- Clause.cs
- KeyInterop.cs
- XmlSortKey.cs
- DefaultProxySection.cs
- ComplusEndpointConfigContainer.cs
- CriticalExceptions.cs
- Vector3DIndependentAnimationStorage.cs
- HostingEnvironmentException.cs
- CheckBoxList.cs
- DecoratedNameAttribute.cs
- MemberExpression.cs
- AsymmetricKeyExchangeDeformatter.cs
- NonBatchDirectoryCompiler.cs
- DataBoundControlDesigner.cs
- ToolStripContentPanelRenderEventArgs.cs
- ExpressionBuilderContext.cs
- SerializationObjectManager.cs
- UpdateCompiler.cs