N Nick Weekes Apr 27, 2005 #1 Probably a very dumb question, but how do you count the members of DbType?
G Gabriel Lozano-Morán Apr 27, 2005 #2 One way to do this, I am not saying that there aren't any other maybe better ways: using System; using System.Data; namespace ConsoleApplication13 { class Class1 { [STAThread] static void Main(string[] args) { Console.WriteLine(Enum.GetValues(typeof(System.Data.DbType)).GetLength(0)); Console.Read(); } } } Gabriel Lozano-Morán
One way to do this, I am not saying that there aren't any other maybe better ways: using System; using System.Data; namespace ConsoleApplication13 { class Class1 { [STAThread] static void Main(string[] args) { Console.WriteLine(Enum.GetValues(typeof(System.Data.DbType)).GetLength(0)); Console.Read(); } } } Gabriel Lozano-Morán
N Nick Weekes Apr 27, 2005 #4 Thanks Gabriel...seems obvious when you think about it, but it had been a long day :-/