Blog Home  Home Feed your aggregator (RSS 2.0)  
Software Code Help - InterviewQuestionC
Blog
 
# Wednesday, July 08, 2009

Only one value can be returned from method, however you can use ref or out variable to change more than one value in called method.

Wednesday, July 08, 2009 7:51:24 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   Interview Question C#  | 

A try statement have zero or more catch statement, There is no limit to the number of catch statement.

Wednesday, July 08, 2009 7:49:24 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   Interview Question C#  | 

The primary difference is that a structure is value data type and class is the reference data type.

Structure don't have default constructur or destructors.

In Structure all variable and method is public where as in class it is private by default.

Structure does not have inherit

Wednesday, July 08, 2009 7:46:06 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   Interview Question C#  | 

Single line, multiple line and document line.

Single line start form anywhere on a line with two forward slashs (//).

Multiple comment start with forward slash followed by an asterisk (/*) and end with asterisk followed by slash .

Document comment start with three forward slashes(///).

Wednesday, July 08, 2009 7:39:34 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   Interview Question C#  | 
foreach ( objectcontrol in form1)
{ 
   if ( typeof Objectcontrol is TextBox)
   {

      Objectcontrol.text = "";
   }
   elseif ( typeof objectcontrol is checkbox)    {       objectcontorl.checked = false;    } }
Wednesday, July 08, 2009 7:30:50 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   Interview Question C#  | 
Copyright © 2010 SoftwareCodeHelp. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: