mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 10:07:10 +00:00
10 lines
280 B
C#
10 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);
|
|
}
|
|
}
|
|
}
|