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
- DefaultWorkflowTransactionService.cs
- RichTextBox.cs
- ColorBlend.cs
- DataGridViewTopRowAccessibleObject.cs
- Converter.cs
- Menu.cs
- HtmlTable.cs
- StringDictionary.cs
- DateTimeUtil.cs
- CodeAccessPermission.cs
- GregorianCalendarHelper.cs
- AppDomainProtocolHandler.cs
- MenuCommands.cs
- GPPOINT.cs
- ArgumentException.cs
- SocketElement.cs
- DocumentEventArgs.cs
- ReflectPropertyDescriptor.cs
- InvokeProviderWrapper.cs
- ListViewCancelEventArgs.cs
- FatalException.cs
- DataBoundControl.cs
- ControllableStoryboardAction.cs
- ObjectManager.cs
- UIPermission.cs
- GregorianCalendar.cs
- HttpPostedFile.cs
- IconHelper.cs
- PersistStreamTypeWrapper.cs
- _LocalDataStoreMgr.cs
- Repeater.cs
- RuntimeHandles.cs
- EntitySetBase.cs
- DtrList.cs
- XmlSchemaSimpleTypeList.cs
- QuaternionIndependentAnimationStorage.cs
- ImageClickEventArgs.cs
- SoapConverter.cs
- _OverlappedAsyncResult.cs
- safesecurityhelperavalon.cs
- Classification.cs
- Signature.cs
- TextBox.cs
- SQLDoubleStorage.cs
- MergeLocalizationDirectives.cs
- AuthorizationSection.cs
- MLangCodePageEncoding.cs
- ConstructorBuilder.cs
- ExpressionVisitor.cs
- DataServiceHostFactory.cs
- ViewManagerAttribute.cs
- DecoderBestFitFallback.cs
- PauseStoryboard.cs
- Dictionary.cs
- TextPointer.cs
- DockingAttribute.cs
- EntityUtil.cs
- SerializationEventsCache.cs
- FreeFormDragDropManager.cs
- ToolboxItem.cs
- ParserStreamGeometryContext.cs
- ImageListDesigner.cs
- EmptyStringExpandableObjectConverter.cs
- BrowserCapabilitiesFactory.cs
- XslTransform.cs
- WinFormsComponentEditor.cs
- RecordsAffectedEventArgs.cs
- IfJoinedCondition.cs
- SectionUpdates.cs
- DependencyPropertyAttribute.cs
- SqlClientWrapperSmiStream.cs
- ToolStripHighContrastRenderer.cs
- RequestCachingSection.cs
- CachedPathData.cs
- UnicodeEncoding.cs
- HtmlHistory.cs
- ServiceElementCollection.cs
- ControlSerializer.cs
- HttpPostedFileWrapper.cs
- IPHostEntry.cs
- DesignerCommandSet.cs
- DriveNotFoundException.cs
- BaseTreeIterator.cs
- SelectionEditor.cs
- DateTimeSerializationSection.cs
- EntityViewGenerator.cs
- SafeArrayTypeMismatchException.cs
- XamlRtfConverter.cs
- IncrementalHitTester.cs
- PrimitiveXmlSerializers.cs
- KeyValuePairs.cs
- ComboBoxRenderer.cs
- OracleInfoMessageEventArgs.cs
- WindowsBrush.cs
- Track.cs
- mediaeventargs.cs
- NativeMethodsOther.cs
- HttpFileCollection.cs
- TransformValueSerializer.cs
- ImageKeyConverter.cs