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#

publicstaticvoidSetAttributeOverride(IEnumerable<Attribute>overrides)

VB

PublicSharedSubSetAttributeOverride(overridesAsIEnumerable(OfAttribute))

C++

public:staticvoidSetAttributeOverride( IEnumerable<Attribute^>^ overrides )

F#

static memberSetAttributeOverride: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