@@ -17,7 +17,7 @@ namespace Microsoft.Reactive.Testing
#if !NO_SERIALIZABLE
[Serializable]
#endif
- public struct Recorded<T> : IEquatable<Recorded<T>>
+ public readonly struct Recorded<T> : IEquatable<Recorded<T>>
{
private readonly long _time;
private readonly T _value;
@@ -15,7 +15,7 @@ namespace Microsoft.Reactive.Testing
- public struct Subscription : IEquatable<Subscription>
+ public readonly struct Subscription : IEquatable<Subscription>
/// <summary>
/// Infinite virtual time value, used to indicate an unsubscription never took place.
@@ -15,7 +15,7 @@ namespace System.Reactive
- public struct TimeInterval<T> : IEquatable<TimeInterval<T>>
+ public readonly struct TimeInterval<T> : IEquatable<TimeInterval<T>>
/// Constructs a time interval value.
@@ -16,7 +16,7 @@ namespace System.Reactive
[Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Timestamped", Justification = "Reviewed and agreed upon.")]
- public struct Timestamped<T> : IEquatable<Timestamped<T>>
+ public readonly struct Timestamped<T> : IEquatable<Timestamped<T>>
/// Constructs a timestamped value.
@@ -10,7 +10,7 @@ namespace System.Reactive
- public struct Unit : IEquatable<Unit>
+ public readonly struct Unit : IEquatable<Unit>
/// Determines whether the specified <see cref="Unit"/> value is equal to the current <see cref="Unit"/>. Because <see cref="Unit"/> has a single value, this always returns <c>true</c>.