|
|
-
|
|
Regex class now support time out setting for regular expression finding match if its take long time in .net 4.5. We are able to set timeout setting with regex class in .Net 4.5 like
[code]
Regex regexpr = new Regex("[a-z ]{10}", RegexOptions.Singleli......
|
|
-
|
|
Visual studio 2011 developer preview introduce new features like we can now find duplicate code in solution it is very useful for code reducing.
First select line of code you have doubt about multiple place use then right click and select “Find Match......
|
|
-
|
|
Today I just learned how to share same configuration file between multiple projects, There are two projects and I need to use same configuration file in both projects. Below code will do the same.
[code]
ExeConfigurationFileMap efm = new ExeConfigur......
|
|
-
|
|
In C#, we know that all reference types will be allocated in heap. It will maintain separate heaps for small objects and large objects. If the object size is more than 85000bytes, then CLR will allocate the object in large object heap. Otherwise, it wil......
|
|
-
|
|
Bundling lets you combine individual javascript and css files in to bundle so that can be treated as single file it automatically reduce no of request. minification it condensed size of javasript and css files by removing whitespace and other character ......
|
|
-
|
|
Today I just learned from Rick strahl Blog we can get IIS Version using Server variable like
[code]
if (HttpContext.Current != null && HttpContext.Current.Request != null)
{
string osversion = HttpContext.Current.Req......
|
|
-
|
|
Recently learned this from Niladri's post..
[code]
List<int> lstNumbers = Enumerable.Range(1,10).ToList<int>();
foreach(int i in lstNumbers)
Console.WriteLine(i);
[/code]......
|
|
-
|
|
Few days back, had a discussion with friends about Fault exception and why it is preferred over other approaches. Just learned from Neeraj's blog that, WCF FaultException<T> generic class which can raise "SoapFault exception", which is technology ......
|
|
-
|
|
If re-throwing an exception without adding additional information, use "throw" instead of "throw ex". An empty "throw" statement in a catch block will emit specific IL that re-throws the exception while preserving the original stack trace. "throw ex" lo......
|
|
-
|
|
CPU load is goes 100% it create a problem to run application so overcome this issue .Net 4.5 Introduce new setting like percentCpuLimit We can Set this setting in web.config.
The default value of the setting is 99%. To disable the throttling, set per......
|
|