mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 02:22:31 +01:00
16 lines
367 B
C#
16 lines
367 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|