Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- StylusOverProperty.cs
- MonthChangedEventArgs.cs
- COM2PropertyDescriptor.cs
- RewritingPass.cs
- UnauthorizedAccessException.cs
- CFStream.cs
- TableColumn.cs
- RSAPKCS1SignatureDeformatter.cs
- ToolStripDropDownClosedEventArgs.cs
- XmlNullResolver.cs
- MethodBuilderInstantiation.cs
- Help.cs
- InstallerTypeAttribute.cs
- Types.cs
- Viewport3DVisual.cs
- XmlSchemaCollection.cs
- PagePropertiesChangingEventArgs.cs
- DuplicateWaitObjectException.cs
- WebBrowserBase.cs
- CompositionDesigner.cs
- CounterSampleCalculator.cs
- CodeDelegateCreateExpression.cs
- DrawingContextDrawingContextWalker.cs
- ClientRuntimeConfig.cs
- TextDpi.cs
- StructuralType.cs
- HashSet.cs
- ActiveXContainer.cs
- AxParameterData.cs
- PrimitiveCodeDomSerializer.cs
- FilterException.cs
- Mapping.cs
- ConfigurationPropertyCollection.cs
- RoutedEventConverter.cs
- ReflectionPermission.cs
- KeyConverter.cs
- DetailsViewPagerRow.cs
- ReadingWritingEntityEventArgs.cs
- SQLRoleProvider.cs
- Bezier.cs
- WebPartConnection.cs
- UmAlQuraCalendar.cs
- Trace.cs
- ManipulationCompletedEventArgs.cs
- DesignerPainter.cs
- PtsHelper.cs
- ChangesetResponse.cs
- VisualBasicValue.cs
- BuildProvider.cs
- PreservationFileReader.cs
- QilReference.cs
- ImageIndexConverter.cs
- RSAPKCS1SignatureFormatter.cs
- DropSource.cs
- AttachedAnnotationChangedEventArgs.cs
- CachedTypeface.cs
- EntryIndex.cs
- ContentIterators.cs
- FuncCompletionCallbackWrapper.cs
- UpdateRecord.cs
- SafeProcessHandle.cs
- ArrayHelper.cs
- ExtendedPropertiesHandler.cs
- ItemCollection.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- TextRunTypographyProperties.cs
- Connector.cs
- BindableAttribute.cs
- ConnectionManagementElement.cs
- ConcurrencyMode.cs
- FlatButtonAppearance.cs
- TypeLibConverter.cs
- X509Utils.cs
- AuthorizationSection.cs
- RuntimeVariableList.cs
- WorkflowRuntimeElement.cs
- ChangesetResponse.cs
- NotifyIcon.cs
- CodeGenHelper.cs
- COM2TypeInfoProcessor.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ExecutionEngineException.cs
- PrtTicket_Base.cs
- ToolStripScrollButton.cs
- TextTreeText.cs
- EntityDataSourceUtil.cs
- controlskin.cs
- FamilyTypeface.cs
- HttpListener.cs
- XmlDictionaryReaderQuotas.cs
- AttachedAnnotationChangedEventArgs.cs
- CustomErrorsSectionWrapper.cs
- TextEditorParagraphs.cs
- NonParentingControl.cs
- RegexInterpreter.cs
- HttpServerVarsCollection.cs
- QilList.cs
- dataprotectionpermission.cs
- WebContext.cs
- EncryptedHeader.cs