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
- TextDecoration.cs
- HttpListener.cs
- ReferenceSchema.cs
- Stackframe.cs
- UpdatableWrapper.cs
- ParameterModifier.cs
- UpdateException.cs
- WinEventTracker.cs
- FileRecordSequenceCompletedAsyncResult.cs
- X509ThumbprintKeyIdentifierClause.cs
- HGlobalSafeHandle.cs
- DataGridView.cs
- FixedNode.cs
- PersonalizationState.cs
- StringReader.cs
- UrlAuthorizationModule.cs
- MembershipSection.cs
- XmlDataImplementation.cs
- PathFigureCollectionValueSerializer.cs
- PropertyKey.cs
- WpfXamlMember.cs
- TypeSystem.cs
- InputMethodStateTypeInfo.cs
- DispatcherExceptionEventArgs.cs
- Int32RectValueSerializer.cs
- SplineKeyFrames.cs
- PrivateFontCollection.cs
- WebZone.cs
- AssemblyUtil.cs
- StylusTip.cs
- RenderDataDrawingContext.cs
- BrowserTree.cs
- DataMember.cs
- TransformPattern.cs
- ComPlusAuthorization.cs
- FrameSecurityDescriptor.cs
- DebugHandleTracker.cs
- SimpleLine.cs
- DeferredSelectedIndexReference.cs
- FlowPosition.cs
- CompilationLock.cs
- HttpAsyncResult.cs
- ApplicationManager.cs
- VariableQuery.cs
- XmlSchemaAppInfo.cs
- HttpGetProtocolReflector.cs
- Base64Decoder.cs
- AccessText.cs
- AsymmetricSecurityProtocolFactory.cs
- ByteStream.cs
- HelpProvider.cs
- AssociatedControlConverter.cs
- DoubleCollection.cs
- UIElementPropertyUndoUnit.cs
- Timer.cs
- Thread.cs
- EventProviderWriter.cs
- SystemFonts.cs
- DbParameterHelper.cs
- Native.cs
- PropertyPathWorker.cs
- BinaryCommonClasses.cs
- SettingsPropertyValueCollection.cs
- PrinterSettings.cs
- SoapCodeExporter.cs
- BinaryWriter.cs
- ActivatableWorkflowsQueryResult.cs
- HTMLTagNameToTypeMapper.cs
- ResourceDisplayNameAttribute.cs
- ControlCollection.cs
- TextBoxAutoCompleteSourceConverter.cs
- TraceLevelStore.cs
- PseudoWebRequest.cs
- DrawToolTipEventArgs.cs
- WhiteSpaceTrimStringConverter.cs
- Guid.cs
- UIElement3DAutomationPeer.cs
- TiffBitmapDecoder.cs
- CommandLineParser.cs
- ConstrainedGroup.cs
- DataStorage.cs
- ZeroOpNode.cs
- XmlSchemaSimpleType.cs
- _Events.cs
- Utilities.cs
- ByteConverter.cs
- DataGridAutoFormat.cs
- HeaderedContentControl.cs
- ProtocolsConfiguration.cs
- BaseDataList.cs
- Ray3DHitTestResult.cs
- RenderContext.cs
- SQLBytesStorage.cs
- StrokeFIndices.cs
- TimeSpanValidatorAttribute.cs
- MethodExpr.cs
- VerificationException.cs
- BaseDataListDesigner.cs
- PrintPreviewDialog.cs
- InternalConfigConfigurationFactory.cs