Carrotware.Web.UI.Controls.CarrotGridView.GetPropertyValue C# (CSharp) Метод

GetPropertyValue() приватный Метод

private GetPropertyValue ( object obj, string property ) : object
obj object
property string
Результат object
        private object GetPropertyValue(object obj, string property)
        {
            PropertyInfo propertyInfo = obj.GetType().GetProperty(property);
            return propertyInfo.GetValue(obj, null);
        }