I read a data from excel and determine which event I am going to execute.
event are both class created by myself (login and logout)
if the value I read = 1 , execute login
if the value I read = 2 , execute logout
I use switch but my boss say I have to use something like hashmap in Java.
In Java, I can write the code like:
table.Add( "one", login.class );
so how can I add class into hashtable using c#?
and how can I read the value and call the class method in hashtable?