-
Unsafe code in C# can be written in the flowing block:
Skill/Topic: AdvancedA) unsafe int ThisMethod(){}B) unsafe: int ThisMethod() { }C) int ThisMethod():unsafe { }
-
-
-
-
What does the keyword virtual mean in the method definition?
The method can be over-ridden.
-
What is a pre-requisite for connection pooling?
Multiple processes must agree that they will share the same connection, where every parameter is the same,
-
What is the role of the DataReader class in ADO.NET connections?
It returns a read-only dataset from the data source when the command is executed.
-
What is the difference between the Debug class and Trace class?
Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds.
-
What is a satellite assembly?
When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies.
-
What is a delegate?
A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers.
-
How do you inherit from a class in C#?
Place a colon and then the name of the base class. Notice that it is double colon in C++.
-
How do I make a DLL in C#?
You need to use the /target:library compiler option.
-
How do I do implement a trace and assert?
Use a conditional attribute on the method, as shown below: class Debug{[conditional("TRACE")]public void Trace(string s){Console.WriteLine(s);}}class MyClass{public static void Main(){Debug.Trace("hello");}}In this example, the call to Debug.Trace() is made only if the preprocessor symbol TRACE is defined at the call site. You can define preprocessor symbols on the command line by using the /D switch....
-
ASP.NET Authentication Providers and IIS Security
ASP.NET implements authentication using authentication providers, which are code modules that verify credentials and implement other security functionality such as cookie generation. ASP.NET supports the following three authentication providers: Forms Authentication: Using this provider causes unauthenticated requests to be redirected to a specified HTML form using client side redirection....
-
-
-
-
What is Marshalling
Answered by Nitin Sharma on 2005-05-12 02:52:10: Marshalling is the process of gathering data from one or more applications or non-contiguous sources in computer storage, putting the data pieces into a message buffer, and organizing or converting the data into a format that is prescribed for a particular receiver or programming interface.