C# ASP.NET equivalent of Classic ASP Server.CreateObject().Exists() -


i've been tasked converting classic asp application asp.net mvc5 application, i'm bit stuck finding equivalent of server.createobject().exists() c# asp.net.

classic asp:

set coursedirectory = server.createobject("scripting.dictionary")  if not (coursedirectory.exists(clashkey)) , not (coursedirectory.exists(altclashkey))     '... end if 

c# equivalent far:

object coursedirectory = new object();  coursedirectory = httpcontext.current.server.createobject("scripting.dictionary");  //problem here if (!(coursedirectory.exists())... 

what have in order achieve same thing in c# asp.net?

isn't normal dictionary? how about:

var coursedirectory = new dictionary<string, object>() 

Comments

Popular posts from this blog

c++ - CPP, 'X' button listener -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -