DataBinder.Evalメソッドの動作 DataBinderクラス(System.Web.UI名前空間)のstaticなメソッドであるEvalメソッドはデータ連結式内で使用される場合がほとんどであるが、データ連結式に依存した特別な機能を持っているわけではない。次のような簡単なC#のサンプル・プログラムを例にしてDataBinder.Evalメソッドの動作について見てみよう。 // binder.cs using System; using System.Web.UI; public class BinderEvalTest { static void Main() { string[] colors = {"red", "green", "blue"}; int len1 = colors.Length; int len2 = (int)DataBinder.Eval(colors,