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
- XamlBuildTaskServices.cs
- TimeSpanOrInfiniteValidator.cs
- GradientStopCollection.cs
- Logging.cs
- CompiledIdentityConstraint.cs
- CalendarData.cs
- TimelineGroup.cs
- InfoCardArgumentException.cs
- FixedSOMLineRanges.cs
- BitmapEffectDrawing.cs
- SafeWaitHandle.cs
- xsdvalidator.cs
- DateTimeConverter2.cs
- TextParagraph.cs
- RadioButton.cs
- UnorderedHashRepartitionStream.cs
- RuleProcessor.cs
- objectresult_tresulttype.cs
- HttpRequestCacheValidator.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- RegionIterator.cs
- _OverlappedAsyncResult.cs
- DBCSCodePageEncoding.cs
- TdsParserHelperClasses.cs
- AlignmentXValidation.cs
- CurrencyWrapper.cs
- AttributeCollection.cs
- TimeStampChecker.cs
- FileSystemEventArgs.cs
- XmlSchemaDatatype.cs
- _AutoWebProxyScriptWrapper.cs
- Image.cs
- PropertyIDSet.cs
- SoundPlayer.cs
- XmlSchemaValidator.cs
- AnchoredBlock.cs
- ScopelessEnumAttribute.cs
- RadialGradientBrush.cs
- XPathNodeHelper.cs
- ServicePoint.cs
- XmlValidatingReader.cs
- ClosableStream.cs
- ContextStaticAttribute.cs
- DropDownButton.cs
- JsonFormatGeneratorStatics.cs
- TextTreeUndoUnit.cs
- GradientStop.cs
- GlobalAclOperationRequirement.cs
- SimpleType.cs
- SequentialWorkflowHeaderFooter.cs
- ZipFileInfoCollection.cs
- ValidationSummary.cs
- QuadTree.cs
- localization.cs
- CollectionChangedEventManager.cs
- regiisutil.cs
- PhysicalFontFamily.cs
- SurrogateEncoder.cs
- SchemaExporter.cs
- TextLineResult.cs
- ResolvedKeyFrameEntry.cs
- DataBindingCollection.cs
- ConfigurationErrorsException.cs
- Trace.cs
- PlatformNotSupportedException.cs
- SqlExpressionNullability.cs
- ServicePointManagerElement.cs
- DesignerSerializationVisibilityAttribute.cs
- ObjectQuery.cs
- AppearanceEditorPart.cs
- NotFiniteNumberException.cs
- ObjectTag.cs
- FillRuleValidation.cs
- ValidatorCompatibilityHelper.cs
- DateTimeParse.cs
- DecoderExceptionFallback.cs
- OletxTransactionHeader.cs
- EncodingTable.cs
- XPathConvert.cs
- Line.cs
- PrintEvent.cs
- WebReference.cs
- XmlSchemaNotation.cs
- XamlClipboardData.cs
- AdornedElementPlaceholder.cs
- DataViewManagerListItemTypeDescriptor.cs
- DocumentSequenceHighlightLayer.cs
- SmtpNegotiateAuthenticationModule.cs
- ListViewInsertionMark.cs
- IndentedTextWriter.cs
- DataGridViewCellPaintingEventArgs.cs
- FormViewRow.cs
- RtfControlWordInfo.cs
- VersionedStreamOwner.cs
- RuntimeTransactionHandle.cs
- safex509handles.cs
- AutomationElement.cs
- EntityCollection.cs
- ContentControl.cs
- TaiwanCalendar.cs