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 / 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
- ConstructorNeedsTagAttribute.cs
- PageCatalogPartDesigner.cs
- JapaneseLunisolarCalendar.cs
- DataGridViewUtilities.cs
- SingleObjectCollection.cs
- TextParagraphCache.cs
- Component.cs
- ForeignConstraint.cs
- PersonalizationEntry.cs
- TabItem.cs
- RoutedPropertyChangedEventArgs.cs
- HierarchicalDataSourceDesigner.cs
- oledbmetadatacollectionnames.cs
- GridView.cs
- OverflowException.cs
- SiteMapProvider.cs
- SeekStoryboard.cs
- Debug.cs
- KeysConverter.cs
- NameTable.cs
- Fx.cs
- PasswordRecovery.cs
- StringSorter.cs
- SecondaryViewProvider.cs
- InternalMappingException.cs
- MSAAWinEventWrap.cs
- RecognizerBase.cs
- ExpandSegment.cs
- RequestTimeoutManager.cs
- Matrix3D.cs
- CommonGetThemePartSize.cs
- _NetworkingPerfCounters.cs
- RequestCache.cs
- DependencyProperty.cs
- XmlSchemaParticle.cs
- TypeConverter.cs
- XmlArrayItemAttribute.cs
- TabRenderer.cs
- SmtpSection.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ImageCreator.cs
- Exception.cs
- InvalidCastException.cs
- StorageScalarPropertyMapping.cs
- GradientSpreadMethodValidation.cs
- TypeConverter.cs
- __FastResourceComparer.cs
- NonPrimarySelectionGlyph.cs
- DataBoundControl.cs
- ApplicationContext.cs
- KeyManager.cs
- EnvelopedPkcs7.cs
- DataRowComparer.cs
- QilXmlReader.cs
- DataGridCheckBoxColumn.cs
- ChannelCacheSettings.cs
- CapabilitiesSection.cs
- WebPartAuthorizationEventArgs.cs
- ConfigurationSettings.cs
- TransformDescriptor.cs
- XamlToRtfParser.cs
- DataGridViewTopRowAccessibleObject.cs
- GlyphTypeface.cs
- BrowserTree.cs
- HelloMessageCD1.cs
- DBCommandBuilder.cs
- SessionPageStatePersister.cs
- TemplatePropertyEntry.cs
- NavigationFailedEventArgs.cs
- XmlTypeMapping.cs
- PropertyCollection.cs
- KeyValueInternalCollection.cs
- EnumValidator.cs
- LocalizabilityAttribute.cs
- AuthStoreRoleProvider.cs
- CallTemplateAction.cs
- ReliabilityContractAttribute.cs
- EdmType.cs
- TokenBasedSetEnumerator.cs
- SendKeys.cs
- CodeTypeMember.cs
- UniqueConstraint.cs
- CodeTypeReference.cs
- TlsnegoTokenProvider.cs
- AutoCompleteStringCollection.cs
- CollaborationHelperFunctions.cs
- DesignerCommandSet.cs
- Expressions.cs
- TraceContextEventArgs.cs
- ComponentEditorPage.cs
- ClientTargetCollection.cs
- TemplateBaseAction.cs
- SecondaryIndexList.cs
- AppSettingsSection.cs
- HtmlTableCell.cs
- CopyNamespacesAction.cs
- DefaultObjectMappingItemCollection.cs
- SoapMessage.cs
- EntityTypeBase.cs
- FileSystemWatcher.cs