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

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

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