1 instantiation of Count
PresentationCore (1)
System\Windows\BinaryFormat\Count.cs (1)
26
public static implicit operator Count(int value) =>
new
(value);
20 references to Count
PresentationCore (20)
System\Windows\BinaryFormat\ArrayInfo.cs (2)
21
public
Count
Length { get; }
23
public ArrayInfo(Id objectId,
Count
length)
System\Windows\BinaryFormat\ArrayRecord.cs (1)
40
public
Count
Length => ArrayInfo.Length;
System\Windows\BinaryFormat\Count.cs (11)
16
internal readonly struct Count : IEquatable<
Count
>
22
public static
Count
Zero { get; } = 0;
23
public static
Count
One { get; } = 1;
25
public static implicit operator int(
Count
value) => value._count;
26
public static implicit operator
Count
(int value) => new(value);
29
=> (obj is
Count
count && Equals(count)) || (obj is int value && value == _count);
31
public bool Equals(
Count
other) => _count == other._count;
36
public static bool operator ==(
Count
left,
Count
right) => left._count == right._count;
37
public static bool operator !=(
Count
left,
Count
right) => !(left == right);
System\Windows\BinaryFormat\NullRecord.cs (2)
13
private
Count
_count;
15
public virtual
Count
NullCount
System\Windows\BinaryFormat\NullRecord.ObjectNullMultiple.cs (1)
24
public ObjectNullMultiple(
Count
count) => NullCount = count;
System\Windows\BinaryFormat\NullRecord.ObjectNullMultiple256.cs (1)
24
public ObjectNullMultiple256(
Count
count) => NullCount = count;
System\Windows\BinaryFormat\ObjectNull.cs (2)
25
public override
Count
NullCount =>
Count
.One;