1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00
Radarr/NzbDrone.Test.Common/ReflectionExtensions.cs

11 lines
280 B
C#
Raw Normal View History

2013-07-19 05:47:55 +02:00
namespace NzbDrone.Test.Common
2012-09-11 08:35:25 +02:00
{
public static class ReflectionExtensions
{
public static T GetPropertyValue<T>(this object obj, string propertyName)
{
return (T)obj.GetType().GetProperty(propertyName).GetValue(obj, null);
}
}
}