fix(abcip-tests): fix static-init NRE blocking AbCip.IntegrationTests #446
@@ -27,7 +27,11 @@ public sealed record AbServerProfile(
|
||||
public static class KnownProfiles
|
||||
{
|
||||
/// <summary>Gets all known server profiles.</summary>
|
||||
public static IReadOnlyList<AbServerProfile> All { get; } =
|
||||
/// <remarks>Expression-bodied (evaluated on access) so it observes the
|
||||
/// <c>static readonly</c> profile fields below after they are initialised;
|
||||
/// a <c>{ get; } =</c> initialiser here runs in textual order — before those
|
||||
/// fields — and would capture an all-null list.</remarks>
|
||||
public static IReadOnlyList<AbServerProfile> All =>
|
||||
[ControlLogix, CompactLogix, Micro800, GuardLogix];
|
||||
|
||||
/// <summary>Gets the ControlLogix profile.</summary>
|
||||
|
||||
Reference in New Issue
Block a user