mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Use 'new' expression in places where the type is evident for the engine (#1415)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Robust.Shared.ContentPack
|
||||
/// <summary>
|
||||
/// Namespaces/Types that are explicitly allowed.
|
||||
/// </summary>
|
||||
private static readonly List<string> _typeWhiteList = new List<string>
|
||||
private static readonly List<string> _typeWhiteList = new()
|
||||
{
|
||||
// base types for making a dll
|
||||
"System.Runtime.CompilerServices.CompilationRelaxationsAttribute",
|
||||
@@ -165,7 +165,7 @@ namespace Robust.Shared.ContentPack
|
||||
/// <summary>
|
||||
/// Namespaces/Types that are restricted. This overrides the white list.
|
||||
/// </summary>
|
||||
private static readonly List<string> _typeBlackList = new List<string>
|
||||
private static readonly List<string> _typeBlackList = new()
|
||||
{
|
||||
// IL stuff
|
||||
"System.Linq.Expressions",
|
||||
|
||||
Reference in New Issue
Block a user