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
Post a Comment