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
- SoapParser.cs
- MetadataCollection.cs
- EventDescriptorCollection.cs
- HttpUnhandledOperationInvoker.cs
- GatewayIPAddressInformationCollection.cs
- CalendarDay.cs
- FontNamesConverter.cs
- OptimalTextSource.cs
- TimeEnumHelper.cs
- SafeArrayRankMismatchException.cs
- _HeaderInfoTable.cs
- DataRecordInternal.cs
- WindowsGrip.cs
- FolderNameEditor.cs
- BinaryWriter.cs
- CalendarDataBindingHandler.cs
- XamlStyleSerializer.cs
- SqlTrackingQuery.cs
- ArgumentOutOfRangeException.cs
- ReadWriteObjectLock.cs
- Margins.cs
- UnsafeCollabNativeMethods.cs
- SqlWebEventProvider.cs
- FileDialogCustomPlacesCollection.cs
- JoinSymbol.cs
- SQLSingle.cs
- FrameworkRichTextComposition.cs
- CutCopyPasteHelper.cs
- NullableConverter.cs
- Msec.cs
- EtwTrace.cs
- AdvancedBindingEditor.cs
- CorrelationTokenInvalidatedHandler.cs
- MergeEnumerator.cs
- NotImplementedException.cs
- PropertyGridView.cs
- TabItem.cs
- DefaultBinder.cs
- WebOperationContext.cs
- WorkBatch.cs
- Span.cs
- CheckableControlBaseAdapter.cs
- RowVisual.cs
- PropertyGridEditorPart.cs
- NamedPipeTransportBindingElement.cs
- SqlAggregateChecker.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DocobjHost.cs
- TextBoxDesigner.cs
- TextCollapsingProperties.cs
- LinkClickEvent.cs
- CodeCastExpression.cs
- WebSysDisplayNameAttribute.cs
- Content.cs
- FormViewPagerRow.cs
- MenuTracker.cs
- ComPlusThreadInitializer.cs
- XmlDocumentFragment.cs
- BooleanAnimationBase.cs
- SqlStream.cs
- SigningDialog.cs
- SqlInternalConnectionSmi.cs
- RuleSetCollection.cs
- PartitionResolver.cs
- ForceCopyBuildProvider.cs
- SelfIssuedAuthProofToken.cs
- AmbientLight.cs
- TransactionTraceIdentifier.cs
- XmlSchemaSubstitutionGroup.cs
- Trace.cs
- activationcontext.cs
- PerspectiveCamera.cs
- PropertyMetadata.cs
- DataControlCommands.cs
- QueuePathDialog.cs
- TextServicesCompartmentContext.cs
- KeyValueSerializer.cs
- HtmlControlPersistable.cs
- OdbcCommandBuilder.cs
- PersistenceTask.cs
- ProfileEventArgs.cs
- HttpCapabilitiesSectionHandler.cs
- ProcessThread.cs
- SqlFacetAttribute.cs
- MachineKey.cs
- CurrentChangedEventManager.cs
- mansign.cs
- ZipIOCentralDirectoryBlock.cs
- KnownTypes.cs
- RtfControls.cs
- DNS.cs
- PartitionResolver.cs
- InlineObject.cs
- ItemPager.cs
- PrimitiveXmlSerializers.cs
- XmlSchemaExporter.cs
- TextContainerChangeEventArgs.cs
- BaseEntityWrapper.cs
- MappingSource.cs
- ProcessManager.cs