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
- OptimizedTemplateContentHelper.cs
- SQLInt32.cs
- _IPv6Address.cs
- TextViewElement.cs
- AuthenticatedStream.cs
- XslAst.cs
- ConfigurationSettings.cs
- MsmqIntegrationInputChannel.cs
- ModuleConfigurationInfo.cs
- TransformerTypeCollection.cs
- EdmPropertyAttribute.cs
- DispatchWrapper.cs
- Vector3DKeyFrameCollection.cs
- WebResourceAttribute.cs
- StylusSystemGestureEventArgs.cs
- DelayedRegex.cs
- PaintValueEventArgs.cs
- XmlIterators.cs
- SingleTagSectionHandler.cs
- FileUpload.cs
- XmlSchemaCollection.cs
- ObjectDataSourceFilteringEventArgs.cs
- CompatibleComparer.cs
- RecordBuilder.cs
- ModifiableIteratorCollection.cs
- CellParaClient.cs
- Vector3DAnimationUsingKeyFrames.cs
- DataTableReaderListener.cs
- XmlWrappingWriter.cs
- ActiveXContainer.cs
- TableTextElementCollectionInternal.cs
- TemplateEditingService.cs
- CustomError.cs
- TdsParserStateObject.cs
- SmiRecordBuffer.cs
- DiscoveryClientBindingElement.cs
- TextElementEditingBehaviorAttribute.cs
- XpsSerializationException.cs
- UseAttributeSetsAction.cs
- Column.cs
- CombinedGeometry.cs
- EntityContainerEmitter.cs
- TextMessageEncodingBindingElement.cs
- EntityDataSourceView.cs
- XmlCDATASection.cs
- PersonalizableAttribute.cs
- ChameleonKey.cs
- SerializableAttribute.cs
- NullableDecimalSumAggregationOperator.cs
- TextDecorationCollection.cs
- WindowsSysHeader.cs
- SQLConvert.cs
- SimpleHandlerBuildProvider.cs
- ServiceReflector.cs
- MenuItemCollectionEditor.cs
- QueueProcessor.cs
- RtType.cs
- Convert.cs
- ObjectDataSourceEventArgs.cs
- JsonReaderWriterFactory.cs
- StackSpiller.Temps.cs
- MorphHelpers.cs
- ElasticEase.cs
- GeneralTransformGroup.cs
- Int64AnimationUsingKeyFrames.cs
- LineInfo.cs
- Type.cs
- IgnorePropertiesAttribute.cs
- HostAdapter.cs
- AssemblyNameProxy.cs
- ConfigurationSection.cs
- WindowsToolbar.cs
- WebPartCancelEventArgs.cs
- DbProviderConfigurationHandler.cs
- PriorityItem.cs
- PrintPreviewGraphics.cs
- XmlNullResolver.cs
- DictionaryContent.cs
- Dump.cs
- UnsafeNativeMethods.cs
- ProfileEventArgs.cs
- TrackingCondition.cs
- SqlDataSourceView.cs
- ScriptRegistrationManager.cs
- QilReference.cs
- TreeViewCancelEvent.cs
- Int16KeyFrameCollection.cs
- ConnectionManagementElementCollection.cs
- SelectionEditingBehavior.cs
- Literal.cs
- loginstatus.cs
- ProfileProvider.cs
- BitmapEffectRenderDataResource.cs
- MetadataCache.cs
- ISAPIWorkerRequest.cs
- NameValueConfigurationCollection.cs
- AttachmentCollection.cs
- ObjectListItemCollection.cs
- RecognitionResult.cs
- InnerItemCollectionView.cs