mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Meta - Fixed a whole bunch of warnings
This commit is contained in:
1 parent
503cc89cd5
commit
1c15fbe983
19 files changed
+361
-85
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user