0% found this document useful (0 votes)
135 views

What's A Satellite Assembly ?

Satellite assemblies allow .NET applications to support multiple languages by storing translated resource files for each language in separate assemblies. At runtime, the application will load the appropriate assembly based on the user's language/locale settings. This avoids needing to recompile the main application for each supported language.

Uploaded by

manoj.sagoi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
135 views

What's A Satellite Assembly ?

Satellite assemblies allow .NET applications to support multiple languages by storing translated resource files for each language in separate assemblies. At runtime, the application will load the appropriate assembly based on the user's language/locale settings. This avoids needing to recompile the main application for each supported language.

Uploaded by

manoj.sagoi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

1: 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.

How’s the DLL Hell problem solved in .NET ?


Assembly versioning allows the application to specify not only the library it needs to run (which
was available under Win32), but also the version of the assembly.
What’s a multicast delegate ?
It’s a delegate that points to and eventually fires off several methods

What’s a delegate ?
A delegate object encapsulates a reference to a method. In C++ they were referred to as function
pointers.

What’s the advantage of using System.Text.StringBuilder


over System.String ?
StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text.
Strings are immutable, so each time it’s being operated on, a new instance is created.
1:->Abstract class is a class that has no direct instances, but whose descendants may have direct
instances

public abstract class Shape


{
//...Class implementation

public abstract void Draw(int x, int y)


{
//this method mustn't be implemented here.
//If we do implement it, the result is a Syntax Error.
}
}

public abstract class Shape2D : Shape


{
//...Class implementation
//...you do not have to implement the the method Draw(int x, int y)
}
public class Cricle : Shape2D
{
//here we should provide an implemetation for Draw(int x, int y)
public override void Draw(int x, int y)
{
//must do some work here
}

2:->An interface has the following properties:

 An interface is like an abstract base class: any non-abstract type that implements the interface must
implement all its members.

 An interface cannot be instantiated directly.

 Interfaces can contain events, indexers, methods, and properties.

 Interfaces contain no implementation of methods.

 Classes and structs can implement more than one interface.

 An interface itself can inherit from multiple interfaces.

3:->

What are the ways to deploy an assembly ?


An MSI installer, a CAB archive, and XCOPY command.
What is an indexer in C#?
Indexer is a special syntax for overloading [] operator for a class. After defining an indexer, array
syntaxes can be used for the class objects.

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.

What are Sealed Classes in C#?


The sealed modifier is used to prevent derivation from a class. A compile-time error occurs if a
sealed class is specified as the base class of another class. (A sealed class cannot also be an
abstract class)

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

What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?


Specifies a search condition for a group or an aggregate. HAVING can be used only with the SELECT
statement. HAVING is typically used in a GROUP BY clause. When GROUP BY is not used, HAVING
behaves like a WHERE clause. Having Clause is basically used only with the GROUP BY function in a
query. WHERE Clause is applied to each row before they are part of the GROUP BY function in a query.
HAVING criteria is applied after the the grouping of rows has occurred

wrapper class are those class in which we can not define and call all predefined function

You might also like