|
|
-
|
|
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]......
|
|
-
|
|
Learned this from Eric Lippert's blog..
Most of us think that, Private members can't be inheritable. But in reality, they will be inherited, Just they will not be accessible. Suppose if your derived class is inside base class, then it can access bas......
|
|
-
|
|
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......
|
|
-
|
|
While working for an application, I found multiple times we were reading a setting from web.config file. When you look at it from performance point of view, I thought it will costs. I found a thread in stackoverflow, which reveals that, when applicatio......
|
|
-
|
|
I just learn that new feature in MVC 3.0 support [AllowHtml] Attribute using this we can input HTML text in input box for that we have to define
[code]
using System.Web.Mvc;
[/code]
Namespace in class where we use this attribute for particular prop......
|
|
-
|
|
Both are keyword cause argument passed by reference. There is minor difference between both of then
ref:
ref keyword required that variable must be initialized before passed to function
Out:
Out keyword variable initialization is not required but b......
|
|
-
|
|
In my previous post, i mentioned that, to a delegate we can add a function repeatedly, say N times, then it will invoke that function also N times. What if we remove one instance from that? Will it removes the first added instance or recently added inst......
|
|
-
|
|
[code]
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(HttpRuntime.CodegenDir);
}
[/code]
Running this on my machine, I get the following output
C:\Users\Suprotim\AppData\Local\Temp\Temporary ASP.NET Files\Sampl......
|
|
-
|
|
We all know that a static variable will be shared by entire class instead of objects. What about Generic Types?? Suppose, from a generic type, if 2 constructed types created, will they maintain different copy or same copy?? They will maintain their own ......
|
|
-
|
|
[code]
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{ Response.Write(Reverse("Beyondrelational"));}
}
private string Reverse(string strValue)
{
char[] chArray = strVal......
|
|