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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewEditingControlShowingEventArgs.cs
- CatalogPartChrome.cs
- PermissionSetTriple.cs
- HwndSource.cs
- XComponentModel.cs
- RolePrincipal.cs
- EastAsianLunisolarCalendar.cs
- EventProviderTraceListener.cs
- ErrorsHelper.cs
- TileModeValidation.cs
- FilteredReadOnlyMetadataCollection.cs
- StringSource.cs
- UserNameSecurityToken.cs
- ControlCollection.cs
- DeclarativeCatalogPart.cs
- DefaultSettingsSection.cs
- Geometry3D.cs
- PackageRelationshipCollection.cs
- ArrangedElementCollection.cs
- DataAdapter.cs
- ActivityBindForm.Designer.cs
- TagNameToTypeMapper.cs
- InfoCardPolicy.cs
- FieldNameLookup.cs
- TextParagraphView.cs
- CodeSubDirectory.cs
- FormatVersion.cs
- ServiceHostFactory.cs
- DataContractSerializer.cs
- RubberbandSelector.cs
- COM2ExtendedUITypeEditor.cs
- BufferedGraphicsContext.cs
- WebPartTransformerCollection.cs
- CatalogPartCollection.cs
- Preprocessor.cs
- IgnoreFileBuildProvider.cs
- SpeakInfo.cs
- BamlLocalizationDictionary.cs
- MultiPageTextView.cs
- Int32CollectionValueSerializer.cs
- CaseCqlBlock.cs
- ProfileElement.cs
- SoapIgnoreAttribute.cs
- AtlasWeb.Designer.cs
- MemoryFailPoint.cs
- TypeForwardedFromAttribute.cs
- WmlValidatorAdapter.cs
- ExtentKey.cs
- ArrayList.cs
- CheckBoxPopupAdapter.cs
- RawTextInputReport.cs
- EventTrigger.cs
- FormsIdentity.cs
- Int32Converter.cs
- Storyboard.cs
- XmlText.cs
- ExpressionBinding.cs
- ValidatingReaderNodeData.cs
- FamilyCollection.cs
- Object.cs
- DeadCharTextComposition.cs
- HostedTcpTransportManager.cs
- ImportDesigner.xaml.cs
- SqlMethodAttribute.cs
- LocationUpdates.cs
- ErrorWrapper.cs
- ReflectionTypeLoadException.cs
- DesignerVerbCollection.cs
- EncryptedPackageFilter.cs
- InvalidOperationException.cs
- LinkLabelLinkClickedEvent.cs
- SetterBaseCollection.cs
- ComplusEndpointConfigContainer.cs
- PenLineJoinValidation.cs
- MaskedTextBox.cs
- ReadOnlyHierarchicalDataSourceView.cs
- HostedNamedPipeTransportManager.cs
- ControlIdConverter.cs
- InfoCardHelper.cs
- DataGridViewTopLeftHeaderCell.cs
- CommonDialog.cs
- GeneratedContractType.cs
- InvokeBinder.cs
- UrlAuthorizationModule.cs
- MetadataSection.cs
- DataKeyCollection.cs
- CompilerParameters.cs
- AvtEvent.cs
- ParserStack.cs
- AccessText.cs
- ViewStateException.cs
- GridItemProviderWrapper.cs
- CollectionBase.cs
- SchemaImporterExtensionsSection.cs
- DataGridViewCellPaintingEventArgs.cs
- RuleSetReference.cs
- CreateUserWizard.cs
- EntitySqlQueryCacheKey.cs
- EncodingNLS.cs
- DataServiceException.cs