1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-27 10:19:41 +00:00
Radarr/NzbDrone.Common.Test/ReflectionExtensions.cs

11 lines
280 B
C#
Raw Normal View History

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