mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
11 lines
280 B
C#
11 lines
280 B
C#
namespace NzbDrone.Test.Common
|
|
{
|
|
public static class ReflectionExtensions
|
|
{
|
|
public static T GetPropertyValue<T>(this object obj, string propertyName)
|
|
{
|
|
return (T)obj.GetType().GetProperty(propertyName).GetValue(obj, null);
|
|
}
|
|
}
|
|
}
|