BoundPropertyEntry CreateBoundPropertyEntry (PropertyInfo pi, string prefix, string expr, bool useSetAttribute)
{
BoundPropertyEntry ret = new BoundPropertyEntry ();
ret.Expression = expr;
ret.ExpressionPrefix = prefix;
ret.Generated = false;
if (pi != null) {
ret.Name = pi.Name;
ret.PropertyInfo = pi;
ret.Type = pi.PropertyType;
}
ret.UseSetAttribute = useSetAttribute;
return ret;
}