Skip to content

M_CommandLine_Infrastructure_ReflectionHelper_SetAttributeOverride

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

ReflectionHelper.SetAttributeOverride Method

Assembly attribute overrides for testing.

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

Syntax

C#

public static void SetAttributeOverride(
	IEnumerable<Attribute> overrides
)

VB

Public Shared Sub SetAttributeOverride ( 
	overrides As IEnumerable(Of Attribute)
)

C++

public:
static void SetAttributeOverride(
	IEnumerable<Attribute^>^ overrides
)

F#

static member SetAttributeOverride : 
        overrides : IEnumerable<Attribute> -> unit 

Parameters

 

overrides
Type: System.Collections.Generic.IEnumerable(Attribute)
Attributes that replace the existing assembly attributes or null, to clear any testing attributes.

Remarks

The implementation will fail if two or more attributes of the same type are included in overrides.

See Also

Reference

ReflectionHelper Class
CommandLine.Infrastructure Namespace

Clone this wiki locally