-
A dummy example of html helper
public static class HtmlHelperExt { public static string GetDebugInfo(this HtmlHelper html) { return "Hello"; } -
definition of two kinds of test
- State-based testing (also called state verification)
-
ResourceManager notes
The benefit to ResourceManager is that it can smartly load differently resource based on the current UI culture. ResourceManager basically it is used to read embedded resource or file based resource. But it is extensible. It has three constructor, and one static factory method
-
CurrentCulture can not be set to Neutural Culture
var c = CultureInfo.GetCultureInfo("en"); Console.WriteLine(c.Name); //en var c2 = CultureInfo.CreateSpecificCulture("en"); Console.WriteLine(c2); //en-US Thread.CurrentThread.CurrentCulture = c2; //ok //following with throw //System.NotSupportedException: Culture 'en' is a neutral culture. Thread.CurrentThread.CurrentCulture = c; -
How Routing Works in asp.net mvc
The mvc stack start with the UrlRoutingModule. The module handle two HttpApplication event.