Blog.Common.Web.Attributes.PreventCrossUserManipulationAttribute.GetPropValue C# (CSharp) Method

GetPropValue() private static method

private static GetPropValue ( object src, string propName ) : object
src object
propName string
return object
        private static object GetPropValue(object src, string propName)
        {
            var property = src.GetType().GetProperty(propName);
            return property == null ? null : property.GetValue(src, null);
        }
    }
PreventCrossUserManipulationAttribute