mirror of
https://github.com/actions/runner.git
synced 2025-12-17 15:59:37 +00:00
21 lines
407 B
C#
21 lines
407 B
C#
using System;
|
|
using GitHub.Actions.Expressions.Sdk;
|
|
|
|
namespace GitHub.Actions.Expressions
|
|
{
|
|
public class NamedValueInfo<T> : INamedValueInfo
|
|
where T : NamedValue, new()
|
|
{
|
|
public NamedValueInfo(String name)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
public String Name { get; }
|
|
|
|
public NamedValue CreateNode()
|
|
{
|
|
return new T();
|
|
}
|
|
}
|
|
} |