mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 15:01:28 +00:00
19 lines
399 B
C#
19 lines
399 B
C#
using System.Collections.Generic;
|
|
|
|
namespace GildedRoseKata
|
|
{
|
|
public class GildedRose
|
|
{
|
|
IList<Item> Items;
|
|
public GildedRose(IList<Item> Items)
|
|
{
|
|
this.Items = Items;
|
|
}
|
|
|
|
public static object GetPropValue(object src, string propName)
|
|
{
|
|
return src.GetType().GetProperty(propName).GetValue(src, null);
|
|
}
|
|
}
|
|
}
|