mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Replaced AsReadOnly property getters with regular properties
Should reduce allocations
This commit is contained in:
1 parent
7ad7eaad89
commit
0b370f261c
21 files changed
+84
-42
No files matched your search
@@ -44,6 +44,11 @@ namespace Artemis.Core.ScriptingProviders
|
||||
/// </summary>
|
||||
public abstract class ScriptingProvider : PluginFeature
|
||||
{
|
||||
protected ScriptingProvider()
|
||||
{
|
||||
Scripts = new(InternalScripts);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the scripting language this provider provides
|
||||
/// </summary>
|
||||
@@ -52,7 +57,7 @@ namespace Artemis.Core.ScriptingProviders
|
||||
/// <summary>
|
||||
/// Gets a list of all active scripts belonging to this scripting provider
|
||||
/// </summary>
|
||||
public ReadOnlyCollection<Script> Scripts => InternalScripts.AsReadOnly();
|
||||
public ReadOnlyCollection<Script> Scripts { get; }
|
||||
|
||||
internal abstract Type GlobalScriptType { get; }
|
||||
internal abstract Type ProfileScriptType { get; }
|
||||
|
||||
Reference in new issue
Block a user