public static void Main() { EditBox edit = new EditBox(); IDataBound bound = edit as IDataBound; if (bound != null) { Console.WriteLine("IDataBound is supported..."); bound.Serialize(); } else { Console.WriteLine("IDataBound is NOT supported..."); } }