Sets or clears the specified flags in an enum, and returns the result.

Namespace: SharpAssembler.Core
Assembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static SectionFlags SetFlag(
	this SectionFlags value,
	SectionFlags flag,
	bool set
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function SetFlag ( _
	value As SectionFlags, _
	flag As SectionFlags, _
	set As Boolean _
) As SectionFlags
Visual C++
[ExtensionAttribute]
public:
static SectionFlags SetFlag(
	SectionFlags value, 
	SectionFlags flag, 
	bool set
)

Parameters

value
Type: SharpAssembler.Core..::..SectionFlags
The value to change.
flag
Type: SharpAssembler.Core..::..SectionFlags
The flags to set or clear.
set
Type: System..::..Boolean
trueTruetruetrue (True in Visual Basic) to set the flags; falseFalsefalsefalse (False in Visual Basic) to clear them.

Return Value

[Missing <returns> documentation for "M:SharpAssembler.Core.SectionFlagsExtensions.SetFlag(SharpAssembler.Core.SectionFlags,SharpAssembler.Core.SectionFlags,System.Boolean)"]

Usage Note

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

See Also