Skip to content

M_CommandLine_Core_ReflectionExtensions_SetValue__1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

ReflectionExtensions.SetValue(T) Method

Namespace: CommandLine.Core
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

private static IEnumerable<Error> SetValue<T>(
	this SpecificationProperty specProp,
	T instance,
	Object value
)

VB

<ExtensionAttribute>
Private Shared Function SetValue(Of T) ( 
	specProp As SpecificationProperty,
	instance As T,
	value As Object
) As IEnumerable(Of Error)

C++

private:
[ExtensionAttribute]
generic<typename T>
static IEnumerable<Error^>^ SetValue(
	SpecificationProperty^ specProp, 
	T instance, 
	Object^ value
)

F#

[<ExtensionAttribute>]
private static member SetValue : 
        specProp : SpecificationProperty * 
        instance : 'T * 
        value : Object -> IEnumerable<Error> 

Parameters

 

specProp
Type: CommandLine.Core.SpecificationProperty
instance
Type: T
value
Type: System.Object

Type Parameters

 

T

Return Value

Type: IEnumerable(Error)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SpecificationProperty. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

ReflectionExtensions Class
CommandLine.Core Namespace

Clone this wiki locally