mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
27 lines
615 B
C#
27 lines
615 B
C#
using System;
|
|
using GitHub.Actions.Expressions.Sdk;
|
|
|
|
namespace GitHub.Actions.Expressions
|
|
{
|
|
public class FunctionInfo<T> : IFunctionInfo
|
|
where T : Function, new()
|
|
{
|
|
public FunctionInfo(String name, Int32 minParameters, Int32 maxParameters)
|
|
{
|
|
Name = name;
|
|
MinParameters = minParameters;
|
|
MaxParameters = maxParameters;
|
|
}
|
|
|
|
public String Name { get; }
|
|
|
|
public Int32 MinParameters { get; }
|
|
|
|
public Int32 MaxParameters { get; }
|
|
|
|
public Function CreateNode()
|
|
{
|
|
return new T();
|
|
}
|
|
}
|
|
} |