What's A Satellite Assembly ?
What's A Satellite Assembly ?
A .NET Framework assembly containing resources specific to a given language. Using satellite
assemblies, you can place the resources for different languages in different assemblies, and the correct
assembly is loaded into memory only if the user elects to view the application in that language."
This means that you develop your application in a default language and add flexibility to react with change
in the locale. Say, for example, you developed your application in an en-US locale. Now, your application
has multilingual support. When you deploy your code in, say, India, you want to show labels, messages
shown in the national language which is other than English.
Satellite assemblies give this flexibility. You create any simple text file with translated strings, create
resources, and put them into the bin\debug folder. That's it. The next time, your code will read the
CurrentCulture property of the current thread and accordingly load the appropriate resource.
What’s a delegate ?
A delegate object encapsulates a reference to a method. In C++ they were referred to as function
pointers.
An interface is like an abstract base class: any non-abstract type that implements the interface must
implement all its members.
3:->
SHADOWING:->
C# Concept by which you can provide a new implementation for the base class member without
overriding the member. You can shadow a base class member in the derived class by using the keyword
Shadows.
Is there an equivalent of exit() for quitting a C# .NET
application?
Yes, you can use System.Environment.Exit(int exitCode) to exit the application or
Application.Exit() if it’s a Windows Forms app.
1:->The Cursor is a handle (name or a pointer) for the memory associated with a specific statement.
A cursor is basically an Area alocated by Oracle for executing the Sql Statements. Oracle Uses an
Implicit Cursor statement for a single row query and Explicit Cursor for a multi row query.
Implicit: Whenever we are using any SQL queries Oracle assigns a private work area to statement after
processing the work area is lost user cannot access the Implicit Cursor area. But if you want to check
how many records got effected with your statment youcan use built in function ROWCOUNT.
Explicit: When we are declering a cursor open it fetch the data one row at a time or we can say whit
the explicit cursor we are assigning a private work area to our statement when Oracle process the
statement we can apply different cursor function ISOPEN FOUND etc to access the details of statement.
1. When do you use SQL Profiler? - SQL Profiler utility allows us to basically track connections to the SQL
Server and also determine activities such as which SQL Scripts are running, failed jobs etc..
2. What is a Linked Server? - Linked Servers is a concept in SQL Server by which we can add other SQL Server
to a Group and query both the SQL Server dbs using T-SQL Statements.
3. What is BCP? When do we use it? - BulkCopy is a tool used to copy huge amount of data from tables and
views. But it won’t copy the structures of the same.
4. What is the difference between clustered and a non-clustered index?
A clustered index is a special type of index that reorders the way records in the table are
physically stored. Therefore table can have only one clustered index. The leaf nodes of a
clustered index contain the data pages.
A nonclustered index is a special type of index in which the logical order of the index does
not match the physical stored order of the rows on disk. The leaf node of a nonclustered
index does not consist of the data pages. Instead, the leaf nodes contain index rows.
What is Collation?
Collation refers to a set of rules that determine how data is sorted and compared. Character data is
sorted using rules that define the correct character sequence, with options for specifying case-
sensitivity, accent marks, kana character types and character width
wrapper class are those class in which we can not define and call all predefined function