|
|
-
|
|
The Dictionary(Of TKey, TValue) and ConcurrentDictionary(Of TKey, TValue) provides same functionality like Hashtable. But a Dictionary(Of TKey, TValue) of a specific type (other than Object) provides better performance than a Hashtable for value types. ......
|
|
-
|
|
99.99% of the time, we write our code with zero indexed arrays. However, C# allows us to create non zero based (single or multi dimensional arrays). CreateInstance is a static method available in Array class. To understand the concept in a simple way, l......
|
|
-
|
|
'And' operator evaluates both expressions,
'AndAlso' evaluates the right side only if the left side is true.
For example, below code throw exception if StrandalsoTest is nothing
[code]
If StrandalsoTest IsNot Nothing And StrandalsoTest.Contai......
|
|
-
|
|
Recently learned this shortcut from my colleague. In visual studio, we can simply encapsulate a field. In a class add a field like below
[code]
private string _CustomerName;
[/code]
Now press Ctrl+R,E. It will show a dialog box with default prope......
|
|
-
|
|
Just learned that "controls disabled from the client side (in my case it was dropdownlist) is not maintaining state when page posts back". To resolve this problem, it requires to set SubmitDisabledControls property (added in .NET framework 2.0) of the f......
|
|
-
|
|
Yield is a keyword which is used to get list of items from a loop. The method implementing yield keyword returns an enumerable object.Yield retains the state of the method during the multiple calls. it means yield returns a single element to the callin......
|
|
-
|
|
Type “prop” and press tab 2 times it create property for you just give data type and name of property you would like to create....
|
|
-
|
|
In today Web marketing world, blogs are performing huge role. Blog is the place where you can represent yourself and your ideas. Wordpress.com is one of top most blogging site, which provides many facilities and also excellent SEO. But unfortunately it’......
|
|
-
|
|
Today, I had a requirement of converting a number to hexa decimal number. A quick google search showed me the below simple way
[code]
int i = 10;
string Hexa = i.ToString("X");
[/code]......
|
|
-
|
|
Using UpdateBatchSize property of Sqldataadapter we can increase performance by minimize roundtrip of server using batch update. There are following value we can set for this property
0 There is no limit on the batch size (sends the maximum number ......
|
|