|
|
-
|
|
When you create a folder in Windows say test... trailing dots are automatically removed. However you can create a file with trailing dots......
|
|
-
|
|
Here is a quick shortcut to browse folders from taskbar itself instead of opening mycomputer and going through each folder.
1. In Taskbar, Right click and Go to Toolbars -> New Toolbar, which opens the folder dialog box
2. Suppose, you often open......
|
|
-
|
|
I just learn from Abhishek Sur blog That future of C# 5.0 introduce two new keywords like "await" and "async" keyword for simplified existing multithreading model
[code]
async Task GetStringsFromUrlAsync(string url)
{
WebClient client = new ......
|
|
-
|
|
Often in web applications, while validating the data at client side, we often have the scenario of calling a function, which is implemented in server side. For example, we might want to validate the entered user name is already exists in our database. T......
|
|
-
|
|
The DebuggerDisplayAttribute constructor has a single argument: a string to be displayed in the value column for instances of the type. This string can contain braces ({ and }). The text within a pair of braces is evaluated as the name of a field, prope......
|
|
-
|
|
Recently learned that when we write linq queries will be converted into corrosponding methods at runtime.
Eg:
[code]
from c in customers
group c by c.Country into g
select new { Country = g.Key, CustCount = g.Count() }
[/code]
will be converted i......
|
|
-
|
|
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......
|
|
-
|
|
There may be many cases where you'd like to have code clocks inside your masterpage's header. The most common scenario is when you want to reference CSS Stylesheet or Javascript using something as simple as ResolveUrl. The problem is, you can't just use......
|
|
-
|
|
Generally we can see project files in solution explorer but now you can also see properties and method defined in file. You double click on file it will open fine and take you directly to that method declaration.
Solution explorer also provides search ......
|
|
-
|
|
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......
|
|