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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TransformedBitmap.cs
- SchemaImporter.cs
- FileDialog_Vista_Interop.cs
- ModuleConfigurationInfo.cs
- Scheduler.cs
- XmlDesigner.cs
- TokenBasedSet.cs
- XmlSchemaInfo.cs
- TypedTableBaseExtensions.cs
- UncommonField.cs
- XmlCharType.cs
- TypeLibConverter.cs
- XmlStringTable.cs
- ControlCachePolicy.cs
- BindingNavigator.cs
- TerminatorSinks.cs
- DbMetaDataFactory.cs
- RemotingServices.cs
- HyperLinkStyle.cs
- KerberosSecurityTokenAuthenticator.cs
- ConfigXmlAttribute.cs
- ListBox.cs
- Attachment.cs
- ProofTokenCryptoHandle.cs
- DriveInfo.cs
- PageCopyCount.cs
- BuildManagerHost.cs
- MouseGestureValueSerializer.cs
- ResizeGrip.cs
- ComAwareEventInfo.cs
- TreeNodeCollection.cs
- WebEventCodes.cs
- DynamicContractTypeBuilder.cs
- HandledEventArgs.cs
- FeatureSupport.cs
- DataFormat.cs
- LinkButton.cs
- AutomationPatternInfo.cs
- FileIOPermission.cs
- TableDetailsRow.cs
- MethodSignatureGenerator.cs
- TextRangeEdit.cs
- FuncTypeConverter.cs
- TTSEvent.cs
- TextLine.cs
- XsdValidatingReader.cs
- ImplicitInputBrush.cs
- CorrelationResolver.cs
- ThicknessKeyFrameCollection.cs
- BlurEffect.cs
- _NegoStream.cs
- UInt32Storage.cs
- RegistrySecurity.cs
- BasicCellRelation.cs
- CompilerGlobalScopeAttribute.cs
- HttpValueCollection.cs
- ByteAnimation.cs
- NativeMethodsCLR.cs
- CompensationHandlingFilter.cs
- SqlCacheDependency.cs
- _ChunkParse.cs
- CultureMapper.cs
- EventLogPermissionAttribute.cs
- GradientSpreadMethodValidation.cs
- OpCellTreeNode.cs
- DataServices.cs
- ContentValidator.cs
- ContextQuery.cs
- InheritanceContextChangedEventManager.cs
- BindingCompleteEventArgs.cs
- ServiceInstanceProvider.cs
- UInt32Converter.cs
- TextSimpleMarkerProperties.cs
- IsolatedStorageSecurityState.cs
- ConfigurationStrings.cs
- _ProxyRegBlob.cs
- SortDescriptionCollection.cs
- CheckBoxList.cs
- EntitySqlQueryCacheEntry.cs
- FilteredDataSetHelper.cs
- WebExceptionStatus.cs
- InheritedPropertyDescriptor.cs
- ToolStripHighContrastRenderer.cs
- SQLBinaryStorage.cs
- DataGridViewCellEventArgs.cs
- HScrollProperties.cs
- NativeMethods.cs
- GPRECTF.cs
- EntityDataSourceWrapper.cs
- Constants.cs
- FamilyTypeface.cs
- FormViewRow.cs
- UserControlParser.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- EntitySet.cs
- HttpCachePolicy.cs
- SetIndexBinder.cs
- BaseUriWithWildcard.cs
- UnsafeCollabNativeMethods.cs
- CodeMemberField.cs