Skip to content

it broken if the class is a CLASS<T> #17

@newbe36524

Description

@newbe36524

Description

if

public class CLASS<T> where T: class
{
  private readonly List<T> instance = default;
  public void Do()
  {
    _logger.LogError("Hi, {Instance}", instance);
  }
}

the generated method is missing T like

internal static void Log_XXXXX_220_24(global::Microsoft.Extensions.Logging.ILogger Logger, global::System.String? @FullName, global::List<T> @Snapshot)

it should be

internal static void Log_XXXXX_220_24(global::Microsoft.Extensions.Logging.ILogger Logger, global::System.String? @FullName, global::List @snapshot)

Reproduction Steps

Expected behavior

Actual behavior

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions