Solution
-
07 November, 2010
A very simply way to collect the keys of a dictionary object to iterate through them is given bellow –
List<string> keyList = new List<string>(myDictionary.Keys); for (int i = 0; i < keyList.Count; i++) { int myInt = myDictionary[keyList[i]]; } -
07 November, 2010
First of all HasSet is different then Dictionary and Hashtable cause it does not allow duplicate value and elements inside a HashSet cannot be accessed through indices, only through an enumerator (which is an iterator).
Now the difference between Dictionary and Hashtable is though Hashtable takes in a key/value pair, but...
-
07 November, 2010
HashSet has been introduced in framework 3.5. It inherits the ICollection interface. HashSet cannot be accessed through indices, only through an enumerator.
HasSet is modeled upon mathematical set. It has methods such as Union, Intersection, IsSubsetOf, IsSupersetOf.
Add method of HashSet is boolean unlike List. HashSet allows only unique... -
14 September, 2010
Bellow are the steps required to execute a sql script using sqlplus
Start listener
$ lsnrctl startLogin to sqlplus
$ sqlplus username/password (if using sys then “sys/password as sysdba”)Start the database
sql>startupTurn on spool...
-
07 July, 2010
First go to settings->Privacy settings. Select the following option -
“I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers”.
Then go to appearance->editor and select Header.php. Here...