Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / CodeDOM / codemethodreferenceexpression.cs / 1 / codemethodreferenceexpression.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; using System.Runtime.Serialization; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeMethodReferenceExpression : CodeExpression { private CodeExpression targetObject; private string methodName; [OptionalField] private CodeTypeReferenceCollection typeArguments; ////// Represents an /// expression to invoke a method, to be called on a given target. /// ////// public CodeMethodReferenceExpression() { } ////// Initializes a new instance of ///. /// /// public CodeMethodReferenceExpression(CodeExpression targetObject, string methodName) { TargetObject = targetObject; MethodName = methodName; } public CodeMethodReferenceExpression(CodeExpression targetObject, string methodName, params CodeTypeReference[] typeParameters) { TargetObject = targetObject; MethodName = methodName; if( typeParameters != null && typeParameters.Length > 0) { TypeArguments.AddRange(typeParameters); } } ////// Initializes a new instance of ///using the specified /// target object and method name. /// /// public CodeExpression TargetObject { get { return targetObject; } set { this.targetObject = value; } } ////// Gets or sets the target object. /// ////// public string MethodName { get { return (methodName == null) ? string.Empty : methodName; } set { methodName = value; } } [System.Runtime.InteropServices.ComVisible(false)] public CodeTypeReferenceCollection TypeArguments{ get { if( typeArguments == null) { typeArguments = new CodeTypeReferenceCollection(); } return typeArguments; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets the name of the method to invoke. /// ///// 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; using System.Runtime.Serialization; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeMethodReferenceExpression : CodeExpression { private CodeExpression targetObject; private string methodName; [OptionalField] private CodeTypeReferenceCollection typeArguments; ////// Represents an /// expression to invoke a method, to be called on a given target. /// ////// public CodeMethodReferenceExpression() { } ////// Initializes a new instance of ///. /// /// public CodeMethodReferenceExpression(CodeExpression targetObject, string methodName) { TargetObject = targetObject; MethodName = methodName; } public CodeMethodReferenceExpression(CodeExpression targetObject, string methodName, params CodeTypeReference[] typeParameters) { TargetObject = targetObject; MethodName = methodName; if( typeParameters != null && typeParameters.Length > 0) { TypeArguments.AddRange(typeParameters); } } ////// Initializes a new instance of ///using the specified /// target object and method name. /// /// public CodeExpression TargetObject { get { return targetObject; } set { this.targetObject = value; } } ////// Gets or sets the target object. /// ////// public string MethodName { get { return (methodName == null) ? string.Empty : methodName; } set { methodName = value; } } [System.Runtime.InteropServices.ComVisible(false)] public CodeTypeReferenceCollection TypeArguments{ get { if( typeArguments == null) { typeArguments = new CodeTypeReferenceCollection(); } return typeArguments; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets the name of the method to invoke. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationDirectory.cs
- PenThreadPool.cs
- EventPrivateKey.cs
- DocumentPageView.cs
- DateRangeEvent.cs
- ErrorProvider.cs
- TimeStampChecker.cs
- HttpListener.cs
- MimeMultiPart.cs
- MemberPathMap.cs
- processwaithandle.cs
- DataRecordInternal.cs
- Selection.cs
- GenericIdentity.cs
- XmlDataLoader.cs
- SerializerDescriptor.cs
- PermissionSet.cs
- AnnouncementInnerClientCD1.cs
- FormDocumentDesigner.cs
- XmlKeywords.cs
- AppSettings.cs
- Psha1DerivedKeyGenerator.cs
- DockPattern.cs
- ProfilePropertyNameValidator.cs
- SpanIndex.cs
- Model3DCollection.cs
- NameSpaceEvent.cs
- RuntimeWrappedException.cs
- MenuItem.cs
- RegexStringValidatorAttribute.cs
- ToolStripPanel.cs
- Preprocessor.cs
- CollectionBuilder.cs
- SystemDiagnosticsSection.cs
- SerializationAttributes.cs
- MetaModel.cs
- PolicyChain.cs
- ScriptHandlerFactory.cs
- SingleResultAttribute.cs
- COM2Properties.cs
- C14NUtil.cs
- TranslateTransform.cs
- ForwardPositionQuery.cs
- PreviewPageInfo.cs
- CatalogPartCollection.cs
- DbConvert.cs
- ThicknessAnimationUsingKeyFrames.cs
- TimeStampChecker.cs
- ParameterCollection.cs
- AttributeInfo.cs
- ReversePositionQuery.cs
- Page.cs
- EditorZoneBase.cs
- GcSettings.cs
- Internal.cs
- FamilyMap.cs
- ResourceFallbackManager.cs
- JpegBitmapEncoder.cs
- validationstate.cs
- Line.cs
- HttpCapabilitiesSectionHandler.cs
- TimeSpan.cs
- WizardStepBase.cs
- Win32.cs
- EditorPart.cs
- IndexedString.cs
- FromReply.cs
- InternalPolicyElement.cs
- EntityObject.cs
- DataKey.cs
- BorderGapMaskConverter.cs
- StringAnimationBase.cs
- Base64WriteStateInfo.cs
- ToolboxItem.cs
- ServiceMetadataBehavior.cs
- WeakReferenceList.cs
- AppSecurityManager.cs
- GatewayDefinition.cs
- BackStopAuthenticationModule.cs
- HorizontalAlignConverter.cs
- CompilationSection.cs
- figurelengthconverter.cs
- ToolStripControlHost.cs
- DelegatingConfigHost.cs
- EntityContainerEmitter.cs
- WorkflowCompensationBehavior.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- RawStylusSystemGestureInputReport.cs
- PolygonHotSpot.cs
- ConfigurationSection.cs
- DataFormat.cs
- GlobalEventManager.cs
- MouseCaptureWithinProperty.cs
- SliderAutomationPeer.cs
- ConfigUtil.cs
- DataGridCommandEventArgs.cs
- GenerateTemporaryAssemblyTask.cs
- ObjectItemNoOpAssemblyLoader.cs
- NavigatorOutput.cs
- GeneralTransform3D.cs