3 instantiations of TriState
System.Drawing.Common (3)
System\Drawing\Printing\TriState.cs (3)
10
public static TriState Default { get; } =
new
(0);
11
public static TriState False { get; } =
new
(1);
12
public static TriState True { get; } =
new
(2);
19 references to TriState
System.Drawing.Common (19)
System\Drawing\Printing\PageSettings.cs (4)
12
private
TriState
_color =
TriState
.Default;
16
private
TriState
_landscape =
TriState
.Default;
System\Drawing\Printing\PrinterSettings.cs (2)
25
private
TriState
_collate =
TriState
.Default;
System\Drawing\Printing\TriState.cs (13)
6
internal readonly partial struct TriState : IEquatable<
TriState
>
10
public static
TriState
Default { get; } = new(0);
11
public static
TriState
False { get; } = new(1);
12
public static
TriState
True { get; } = new(2);
24
public static bool operator ==(
TriState
left,
TriState
right) => left.Equals(right);
26
public static bool operator !=(
TriState
left,
TriState
right) => !left.Equals(right);
30
Debug.Assert(o is
TriState
);
31
return Equals((
TriState
)o);
34
public bool Equals(
TriState
other) => _value == other._value;
38
public static implicit operator
TriState
(bool value) => value ? True : False;
40
public static explicit operator bool(
TriState
value) =>