Skip to content

Commit b7d95ae

Browse files
committed
Eliminating build warnings
1 parent 879b813 commit b7d95ae

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

Foundation/.Net-5.0/Collections/BitVector64.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Foundation.Collections
44
{
55
public struct BitVector64
66
{
7-
//[CLSCompliant(false)]
7+
[CLSCompliant(false)]
88
public BitVector64(ulong data) => Value = data;
99

1010
[CLSCompliant(false)]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using System;
2+
using System.Reflection;
3+
using System.Runtime.InteropServices;
4+
5+
[assembly: AssemblyCopyright("Copyright © 2002-2021 Csaba Bernáth")]
6+
[assembly: CLSCompliant(true)]
7+
[assembly: ComVisible(false)]

Foundation/.Net-5.0/Core/Date.cs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ public struct Date : IComparable<Date>, IEquatable<Date>
1010
{
1111
private readonly ulong _value;
1212

13-
public static readonly DateTime MinDateTime = new DateTime(1900, 1, 1);
14-
public static readonly DateTime MaxDateTime = new DateTime(9999, 12, 31);
15-
public static readonly Date MinValue = new Date(MinDateTime);
16-
public static readonly Date MaxValue = new Date(MaxDateTime);
13+
public static readonly DateTime MinDateTime = new(1900, 1, 1);
14+
public static readonly DateTime MaxDateTime = new(9999, 12, 31);
15+
public static readonly Date MinValue = new(MinDateTime);
16+
public static readonly Date MaxValue = new(MaxDateTime);
1717

1818
public Date(ulong value) => _value = value;
1919

@@ -45,7 +45,7 @@ public Date AddDays(long value)
4545

4646
if (valueInt64 < 0)
4747
valueUInt64 = 0;
48-
else if (MaxValue._value < (ulong)valueInt64)
48+
else if (MaxValue._value < (ulong) valueInt64)
4949
valueUInt64 = MaxValue._value;
5050
else
5151
valueUInt64 = (ulong) valueInt64;
@@ -91,5 +91,14 @@ internal string DebuggerDisplay
9191
}
9292
}
9393

94+
public override bool Equals(object obj)
95+
{
96+
throw new NotImplementedException();
97+
}
98+
99+
public override int GetHashCode()
100+
{
101+
throw new NotImplementedException();
102+
}
94103
}
95104
}

0 commit comments

Comments
 (0)