1 instantiation of Count
System.Private.Windows.Core (1)
System\Private\Windows\Count.cs (1)
27public static implicit operator Count(int value) => new(value);
25 references to Count
BinaryFormatTests (6)
FormatTests\FormattedObject\CountTests.cs (6)
11Func<Count> func = () => (Count)(-1); 18((Count)4).Should().Be(4); 24((Count)4).Should().Be((Count)4); 30((Count)5).ToString().Should().Be("5");
System.Private.Windows.Core (19)
System\Private\Windows\BinaryFormat\Serializer\ArrayInfo.cs (2)
19public Count Length { get; } 21public ArrayInfo(Id objectId, Count length)
System\Private\Windows\BinaryFormat\Serializer\ArrayRecord.cs (1)
31public Count Length => _arrayInfo.Length;
System\Private\Windows\BinaryFormat\Serializer\NullRecord.cs (2)
11private Count _count; 13public virtual Count NullCount
System\Private\Windows\BinaryFormat\Serializer\NullRecord.ObjectNullMultiple.cs (1)
24public ObjectNullMultiple(Count count) => NullCount = count;
System\Private\Windows\BinaryFormat\Serializer\NullRecord.ObjectNullMultiple256.cs (1)
24public ObjectNullMultiple256(Count count) => NullCount = count;
System\Private\Windows\BinaryFormat\Serializer\ObjectNull.cs (1)
22public override Count NullCount => 1;
System\Private\Windows\Count.cs (11)
13internal readonly struct Count : IEquatable<Count> 23public static Count Zero { get; } = 0; 24public static Count One { get; } = 1; 26public static implicit operator int(Count value) => value._count; 27public static implicit operator Count(int value) => new(value); 30=> (obj is Count count && Equals(count)) || (obj is int value && value == _count); 32public bool Equals(Count other) => _count == other._count; 37public static bool operator ==(Count left, Count right) => left._count == right._count; 38public static bool operator !=(Count left, Count right) => !(left == right);