System.Web.Compilation.TemplateControlCompiler.CreateBoundPropertyEntry C# (CSharp) Method

CreateBoundPropertyEntry() private method

private CreateBoundPropertyEntry ( PropertyInfo pi, string prefix, string expr, bool useSetAttribute ) : System.Web.UI.BoundPropertyEntry
pi System.Reflection.PropertyInfo
prefix string
expr string
useSetAttribute bool
return System.Web.UI.BoundPropertyEntry
		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;
		}
TemplateControlCompiler