Meta - Fixed a whole bunch of warnings

This commit is contained in:
Robert committed 2022-01-02 23:16:16 +01:00
1 parent 503cc89cd5
commit 1c15fbe983
19 files changed
+361 -85

No files matched your search

+12
View File
@@ -256,6 +256,18 @@ namespace Artemis.Core
/// </summary>
public event EventHandler? RenderPropertiesUpdated;
/// <inheritdoc />
public override void Activate()
{
throw new NotImplementedException();
}
/// <inheritdoc />
public override void Deactivate()
{
throw new NotImplementedException();
}
/// <inheritdoc />
protected override void Dispose(bool disposing)
{
+1 -1
View File
@@ -13,7 +13,7 @@ namespace Artemis.Core
/// <summary>
/// Creates a list containing a tuple for each value in the enum type
/// </summary>
/// <param name="t">The enum type to create value descriptions for</param>
/// <typeparam name="T">The enum type to create value descriptions for</typeparam>
/// <returns>A list containing a value-description tuple for each value in the enum type</returns>
public static List<(T, string)> GetAllValuesAndDescriptions<T>() where T : struct, Enum
{
+3 -3
View File
@@ -45,7 +45,7 @@ namespace Artemis.Core
{
if (_list.Count > 0)
{
T value = _list.First.Value;
T value = _list.First!.Value;
_list.RemoveFirst();
return value;
}
@@ -61,7 +61,7 @@ namespace Artemis.Core
{
if (_list.Count > 0)
{
T value = _list.First.Value;
T value = _list.First!.Value;
return value;
}
else
@@ -92,7 +92,7 @@ namespace Artemis.Core
bool result = false;
if (this.Count > 0)
{
result = Peek().Equals(value);
result = Peek()!.Equals(value);
}
return result;
}