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

14 lines
399 B
C#

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>";
}
}