diff --git a/csharp/Platform.Timestamps/Timestamp.cs b/csharp/Platform.Timestamps/Timestamp.cs index f4c5c32..f1a8b05 100644 --- a/csharp/Platform.Timestamps/Timestamp.cs +++ b/csharp/Platform.Timestamps/Timestamp.cs @@ -65,37 +65,19 @@ public struct Timestamp : IEquatable [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ulong(Timestamp timestamp) => timestamp.Ticks; - /// - /// Returns a string that represents the current Timestamp. - /// Возвращает строку, которая представляет текущую метку времени. - /// - /// A string that represents the current Timestamp.Строка, представляющая текущую метку времени. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() => ((DateTime)this).ToString(DefaultFormat); - /// - /// Определяет, равна ли текущая отметка времени другой отметке времени. - /// Indicates whether the current Timestamp is equal to another Timestamp. - /// - /// Other Timestamp.Другая отметка времени. - /// True if the current Timestamp is equal to the other Timestamp; otherwise, false.Истину, если текущая отметка времени равна другой отметке времени; иначе ложь. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(Timestamp other) => Ticks == other.Ticks; - /// - /// Determines whether the specified object is equal to the current object. - /// Определяет, равен ли указанный объект текущему объекту. - /// - /// The object to compare with the current object.Объект для сравнения с текущим объектом. - /// True if the specified object is equal to the current object; otherwise, false.Истину, если указанный объект равен текущему объекту; иначе ложь. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public override bool Equals(object obj) => obj is Timestamp timestamp ? Equals(timestamp) : false; - /// - /// Serves as the default hash function. - /// Служит в качестве хэш-функции по умолчанию. - /// - /// A hash code for the current object.Хеш-код для текущего объекта. + /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() => Ticks.GetHashCode();