1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-02-06 11:50:56 +02:00
Sonarr/NzbDrone.Test.Common/ReflectionExtensions.cs

11 lines
280 B
C#
Raw Normal View History

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