Delegate Usage : Business Applications
Besides events, how useful are delegates, and in what Business Application contexts are they most useful?
Besides events, how useful are delegates, and in what Business Application contexts are they most useful?
This line
Normally I would bind data to a DropDownListFor with a SelectList:
I’m using a library that relies on HttpContext.Current. The library is Facebook C# SDK, but my question should apply in other scenarios as well. I’d like to use this library from inside of a parallel thread. However, HttpContext.Current is not available in the parallel thread, so I’m thinking about caching it to a local variable and then setting it in the parallel thread like this:
I have this code in web.config:
I am getting the “Unable to convert MySQL date/time value to System.DateTime” error because from what I can tell I have a record with 0000-00-00 00:00:00. Now while the data should never be that (it should be null) there are cases when this might happen and I don’t want my entire application to crash because of it. I am using NHibernate and I tried adding change my connection string to allow zero datetime so the connection string configuration looks like:
Is there any limit on number of classes that a namespace can have in .NET? Further what is the recommended number of classes that there should be in a namespace?
I have an ASP.NET page that implements my view and creates the presenter in the page constuctor. Phil Haack’s post providing was used as the starting point, and I’ll just the examples from the post to illustrate the question.
I have a Web API 2 project with help pages that runs fine locally but throws this error when I push it to Azure:
I have a localized ASP.NET Core Web Application: en-US and it-IT.