public class Control { protected virtual void DataBind(bool raiSEOnDataBinding) { bool foundDataItem = false; if (this.IsBindingContainer) { object o = DataBinder.GetDataItem(this, out foundDataItem); if (foundDataItem) Page.PushDataItemContext(o); <-- 将DataItem压入堆栈 } try { if (raiseOnDataBinding) OnDataBinding(EventArgs.Empty);
parse expression_r and evaluate it. Supports Boolean, Bitwise, Arithmetic, Unary, Paren, Member (such as object.property ), Indexer (such as array[index]) and ConditionalIf(?:), also supports Variable assign.
you can use it like evaluate one statement C# source code.