Cysharp / DFrame

Distributed load testing framework for .NET and Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nullable enum type can't use on workload.

the9ball opened this issue · comments

I use nullable enum type.

public enum WorkerType
{
    A,
    B,
}

public class NullableWorkload : Workload
{
    public NullableWorkload(WorkerType? t) { }
    public override Task ExecuteAsync(WorkloadContext context) => Task.CompletedTask;
}

public class NotNullableWorkload : Workload
{
    public NotNullableWorkload(WorkerType t) { }
    public override Task ExecuteAsync(WorkloadContext context) => Task.CompletedTask;
}

But, Only null in dropdown list.
image
image

I hope null , A , B in dropdown list.

thanks, I've released 1.0.6, it includes this fix.