/// <summary>
/// <see cref="DateTimeKind.Utc"/> に固定された <see cref="DateTime"/> を扱うための構造体
/// </summary>
- public struct DateTimeUtc : IComparable<DateTimeUtc>, IEquatable<DateTimeUtc>
+ public readonly struct DateTimeUtc : IComparable<DateTimeUtc>, IEquatable<DateTimeUtc>
{
public static DateTimeUtc MinValue { get; }
= new DateTimeUtc(DateTime.SpecifyKind(DateTime.MinValue, DateTimeKind.Utc));
{
public class PostClass : ICloneable
{
- public struct StatusGeo : IEquatable<StatusGeo>
+ public readonly struct StatusGeo : IEquatable<StatusGeo>
{
public double Longitude { get; }
public double Latitude { get; }
public abstract Task RefreshAsync(Twitter tw, bool backward, bool startup, IProgress<string> progress);
- private struct TemporaryId
+ private readonly struct TemporaryId
{
public long StatusId { get; }
public bool Read { get; }
private List<urlUndo> urlUndoBuffer = null;
- private struct ReplyChain
+ private readonly struct ReplyChain
{
- public long OriginalId;
- public long InReplyToId;
- public TabModel OriginalTab;
+ public readonly long OriginalId;
+ public readonly long InReplyToId;
+ public readonly TabModel OriginalTab;
public ReplyChain(long originalId, long inReplyToId, TabModel originalTab)
{