test(worker): silence CS0649 on reflection-only FakeMxStatus fields
This commit is contained in:
@@ -96,6 +96,10 @@ internal sealed class NoopMxAccessServer : IMxAccessServer
|
||||
/// </summary>
|
||||
internal sealed class FakeMxStatus
|
||||
{
|
||||
// These public fields exist solely so MxStatusProxyConverter can reflect
|
||||
// over them by name; they are read through reflection, not directly, so the
|
||||
// compiler's "never assigned" (CS0649) diagnostic does not apply.
|
||||
#pragma warning disable CS0649
|
||||
/// <summary>Success indicator field read by the status converter.</summary>
|
||||
public int success;
|
||||
|
||||
@@ -107,4 +111,5 @@ internal sealed class FakeMxStatus
|
||||
|
||||
/// <summary>Status detail field read by the status converter.</summary>
|
||||
public int detail;
|
||||
#pragma warning restore CS0649
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user