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