Innovenergy_trunk/csharp/Lib/Utils/Reflection/Parameter.cs

14 lines
399 B
C#
Raw Normal View History

2023-04-05 15:43:27 +00:00
using System.Reflection;
namespace InnovEnergy.Lib.Utils.Reflection
{
public class Parameter
{
private readonly ParameterInfo _ParameterInfo;
internal Parameter(ParameterInfo parameterInfo) => _ParameterInfo = parameterInfo;
public Type Type => _ParameterInfo.ParameterType;
public String Name => _ParameterInfo.Name ?? "<no name>";
}
}