Core - Added XML comments to all remaining public members/methods

Core - Refactored a lot of code for nullable reference types
This commit is contained in:
Robert committed 2020-11-16 20:16:06 +01:00
1 parent 61fc96742d
commit a3cd32f6c4
107 files changed
+1150 -649

No files matched your search

@@ -1,5 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
@@ -9,6 +8,9 @@ using Humanizer;
namespace Artemis.Core.DataModelExpansions
{
/// <summary>
/// Represents a data model that contains information on a game/application etc.
/// </summary>
public abstract class DataModel
{
private readonly Dictionary<string, DataModel> _dynamicDataModels = new Dictionary<string, DataModel>();
@@ -154,11 +156,17 @@ namespace Artemis.Core.DataModelExpansions
/// </summary>
public event EventHandler<DynamicDataModelEventArgs>? DynamicDataModelRemoved;
/// <summary>
/// Invokes the <see cref="DynamicDataModelAdded" /> event
/// </summary>
protected virtual void OnDynamicDataModelAdded(DynamicDataModelEventArgs e)
{
DynamicDataModelAdded?.Invoke(this, e);
}
/// <summary>
/// Invokes the <see cref="DynamicDataModelRemoved" /> event
/// </summary>
protected virtual void OnDynamicDataModelRemoved(DynamicDataModelEventArgs e)
{
DynamicDataModelRemoved?.Invoke(this, e);