FlagsHelper.SetUnset<T> Method

Sets or unsets a flag depending on the set value.
Public Shared Sub SetUnset(Of  _ 
T As Structure)( _ 
ByRef flags As T, _ 
ByVal flag As T, _ 
ByVal set As Boolean
)
This language is not supported or no code example is available.
public static void SetUnset<T>( 
ref T flags
T flag
bool set 

where T : struct
This language is not supported or no code example is available.

Type Parameters

T

<default>

Parameters

flags
T

The data to modify

flag
T

The flag to set/unset

set
bool

If true, the flag is set, else it's unset

.NET Framework

Supported in: 4.8

In this article

Definition