Click here to Skip to main content
15,908,901 members
Home / Discussions / C#
   

C#

 
Questionplz help to read the dir name Pin
P_Elza8-Oct-07 20:25
P_Elza8-Oct-07 20:25 
AnswerRe: plz help to read the dir name Pin
Spunky Coder8-Oct-07 20:43
Spunky Coder8-Oct-07 20:43 
QuestionC# app using C code written in Linux Pin
dfn8-Oct-07 19:22
dfn8-Oct-07 19:22 
Questionplease answer me (few interview questions) Pin
pashitech8-Oct-07 18:51
pashitech8-Oct-07 18:51 
AnswerRe: please answer me (few interview questions) Pin
pmarfleet8-Oct-07 19:25
pmarfleet8-Oct-07 19:25 
AnswerRe: please answer me (few interview questions) Pin
Ramorua8-Oct-07 21:01
Ramorua8-Oct-07 21:01 
AnswerRe: please answer me (few interview questions) Pin
Pete O'Hanlon8-Oct-07 22:21
mvePete O'Hanlon8-Oct-07 22:21 
AnswerRe: please answer me (few interview questions) Pin
Sathesh Sakthivel8-Oct-07 23:45
Sathesh Sakthivel8-Oct-07 23:45 
pashitech wrote:
Difference between Debug and Release?


The biggest difference between these is that:
In a debug build the complete symbolic debug information is emitted to help while debugging applications and also the code optimization is not taken into account.
While in release build the symbolic debug info is not emitted and the code execution is optimized.
Also, because the symbolic info is not emitted in a release build, the size of the final executable is lesser than a debug executable.

One can expect to see funny errors in release builds due to compiler optimizations or differences in memory layout or initialization. These are ususally referred to as Release - Only bugs Smile | :)

In terms of execution speed, a release executable will execute faster for sure, but not always will this different be significant.


pashitech wrote:
What is Doc Switch?


that gathers all such documentation lines and generates HTML reference pages."

According to 'csc -?' the '/doc:<file>' switch is for "XML Documentation file to generate", not HTML. (I could find no reference to HTML under csc -?) Also, the only Output option in VS Express (Project -> MyPhotos Properties ... -> Build tab -> Output) was for "XML documentation file:" After rebuilding the project I inspected the directory structure and found a XML file; there was no HTML file(s).

pashitech wrote:
Can you brief me about Generics and Partial Classes.


Generics and Partial classes


pashitech wrote:
What are static classes?


A class can be declared static, indicating that it contains only static members. It is not possible to create instances of a static class using the new keyword. Static classes are loaded automatically by the .NET Framework common language runtime (CLR) when the program or namespace containing the class is loaded.

Use a static class to contain methods that are not associated with a particular object. For example, it is a common requirement to create a set of methods that do not act on instance data and are not associated to a specific object in your code. You could use a static class to hold those methods.


pashitech wrote:
what are indexers in C#?


C# introduces a new concept known as Indexers which are used for treating an object as an array. The indexers are usually known as smart arrays in C# community. Defining a C# indexer is much like defining properties. We can say that an indexer is a member that enables an object to be indexed in the same way as an array.

<modifier> <return type=""> this [argument list]
{
get
{
// Get codes goes here
}
set
{
// Set codes goes here
}
}



pashitech wrote:
What does immutable mean?explain?


An object qualifies as being called immutable if its value cannot be modified once it has been created. For example, methods that appear to modify a String actually return a new String containing the modification. Developers are modifying strings all the time in their code. This may appear to the developer as mutable - but it is not. What actually happens is your string variable/object has been changed to reference a new string value containing the results of your new string value. For this very reason .NET has the System.Text.StringBuilder class. If you find it necessary to modify the actual contents of a string-like object heavily, such as in a for or foreach loop, use the System.Text.StringBuilder class.


pashitech wrote:
how to create a singleton class


http://dotnetslackers.com/community/blogs/simoneb/archive/2007/04/17/ASP.NET-Singleton_2D00_per_2D00_Page-pattern.aspx[^]








SSK.

Anyone who says sunshine brings happiness has never danced in the rain.

AnswerRe: please answer me (few interview questions) Pin
Colin Angus Mackay9-Oct-07 0:01
Colin Angus Mackay9-Oct-07 0:01 
GeneralRe: please answer me (few interview questions) Pin
Pete O'Hanlon9-Oct-07 0:14
mvePete O'Hanlon9-Oct-07 0:14 
GeneralRe: please answer me (few interview questions) Pin
Colin Angus Mackay9-Oct-07 0:20
Colin Angus Mackay9-Oct-07 0:20 
GeneralRe: please answer me (few interview questions) Pin
Pete O'Hanlon9-Oct-07 0:39
mvePete O'Hanlon9-Oct-07 0:39 
GeneralRe: please answer me (few interview questions) Pin
Colin Angus Mackay9-Oct-07 7:14
Colin Angus Mackay9-Oct-07 7:14 
GeneralRe: please answer me (few interview questions) Pin
Pete O'Hanlon9-Oct-07 22:03
mvePete O'Hanlon9-Oct-07 22:03 
GeneralRe: please answer me (few interview questions) Pin
Colin Angus Mackay10-Oct-07 11:14
Colin Angus Mackay10-Oct-07 11:14 
QuestionScrollbar color change Pin
Darmi8-Oct-07 18:16
Darmi8-Oct-07 18:16 
GeneralOnline Pin
Skeliton8-Oct-07 16:32
Skeliton8-Oct-07 16:32 
GeneralRe: Online Pin
Scott Dorman8-Oct-07 16:39
professionalScott Dorman8-Oct-07 16:39 
Questionhow can I get ID of each control in a form ? Pin
whale848-Oct-07 14:44
whale848-Oct-07 14:44 
AnswerRe: how can I get ID of each control in a form ? [modified] Pin
Scott Dorman8-Oct-07 15:45
professionalScott Dorman8-Oct-07 15:45 
GeneralRe: how can I get ID of each control in a form ? Pin
whale848-Oct-07 17:09
whale848-Oct-07 17:09 
GeneralRe: how can I get ID of each control in a form ? Pin
Scott Dorman8-Oct-07 17:18
professionalScott Dorman8-Oct-07 17:18 
GeneralRe: how can I get ID of each control in a form ? Pin
Pete O'Hanlon8-Oct-07 22:23
mvePete O'Hanlon8-Oct-07 22:23 
GeneralRe: how can I get ID of each control in a form ? Pin
Scott Dorman8-Oct-07 23:35
professionalScott Dorman8-Oct-07 23:35 
GeneralRe: how can I get ID of each control in a form ? Pin
whale848-Oct-07 17:27
whale848-Oct-07 17:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.