Logo 
Search:

c programming Interview FAQs

Submit Interview FAQ
No Records Found!!!
Go Ahead and Post your Interview FAQ
Home » Interview FAQs » c programmingRSS Feeds
C#
Comments: 0

What's new in C# 3.0?

Support for LINQ was the driving force behind the main enhancements in C# 3.0. Query expressions are the most obvious example, but lambda expressions, extension methods and anonymous types also fall into this category. However most of these enhanceme...
Posted By:Luigi Fischer      Posted On: Nov 26

C#
Comments: 0

How do I enforce const correctness in C#?

You can't - at least not in the same way you do in C++. C# (actually, the CLI) has no real concept of const correctness, For example, there's no way to specify that a method should not modify an argument passed in to it. And there's no way to specify...
Posted By:Corey Brown      Posted On: Sep 18

C#
Comments: 0

What are the new features in C# 2.0?

Support for all of the new framework features such as generics, anonymous methods, partial classes, iterators and static classes. See the .NET FAQ for more on these features.

Delegate inference is a new feature of the C# compiler which makes deleg...
Posted By:Fred Hicks      Posted On: Aug 28

C#
Comments: 0

Are C# generics the same as C++ templates?

No, not really. There are some similarities, but there are also fundamental differences.
Posted By:Ludo Ricci      Posted On: Jan 18

C#
Comments: 0

How can I make sure my C# classes will interoperate with other .NET languages?

Make sure your C# code conforms to the Common Language Subset (CLS). To help with this, add the [assembly:CLSCompliant(true)] global attribute to your C# source files. The compiler will emit an error if you use a C# feature which is not CLS-compliant...
Posted By:Eric Foster      Posted On: Sep 28

C#
Comments: 0

How do I use the 'using' keyword with multiple objects?

You can nest using statements, like this:

using( obj1 )
{
using( obj2 )
{
...
}
}
However consider using this more aesthetically pleasing (but functionally identical) formatting:

us...
Posted By:Oliver Evans      Posted On: Nov 01

C#
Comments: 0

What's new in C# 3.0?

Support for LINQ was the driving force behind the main enhancements in C# 3.0. Query expressions are the most obvious example, but lambda expressions, extension methods and anonymous types also fall into this category. However most of these enhanceme...
Posted By:Luigi Fischer      Posted On: Nov 26

C#
Comments: 0

How do I enforce const correctness in C#?

You can't - at least not in the same way you do in C++. C# (actually, the CLI) has no real concept of const correctness, For example, there's no way to specify that a method should not modify an argument passed in to it. And there's no way to specify...
Posted By:Corey Brown      Posted On: Sep 18

C#
Comments: 0

What are the new features in C# 2.0?

Support for all of the new framework features such as generics, anonymous methods, partial classes, iterators and static classes. See the .NET FAQ for more on these features.

Delegate inference is a new feature of the C# compiler which makes deleg...
Posted By:Fred Hicks      Posted On: Aug 28

C#
Comments: 0

Are C# generics the same as C++ templates?

No, not really. There are some similarities, but there are also fundamental differences.
Posted By:Ludo Ricci      Posted On: Jan 18

C#
Comments: 0

How can I make sure my C# classes will interoperate with other .NET languages?

Make sure your C# code conforms to the Common Language Subset (CLS). To help with this, add the [assembly:CLSCompliant(true)] global attribute to your C# source files. The compiler will emit an error if you use a C# feature which is not CLS-compliant...
Posted By:Eric Foster      Posted On: Sep 28

C#
Comments: 0

How do I use the 'using' keyword with multiple objects?

You can nest using statements, like this:

using( obj1 )
{
using( obj2 )
{
...
}
}
However consider using this more aesthetically pleasing (but functionally identical) formatting:

us...
Posted By:Oliver Evans      Posted On: Nov 01

  38  39  40  41  42  43  44  45  46  47  48