h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Visual Studio 2010 New Features


Visual Studio 2010 New Features
  • Multi-targeting Application Development
  • Faster Intellisense Support
  • Editor Zoom Functionality
  • Faster Assembly loading in “Add Reference”
  • Detach Window outside IDE
  • Reference Highlight
  • Faster Code Generation
  • Box Selection
  • Easy Navigation
  • Better Toolbox Support
  • Breakpoints
  • IntelliTrace
  • Hiding the Selected Part of Code
  • DataTips
  • String.IsNullOrWhiteSpace
  • Named and Optional Parameters
  • Highlighting
  • Intelligence Generated as Per Usage
  • Predictable
  • Inherit
  • ClientID Generation using ClientIDMode
  • Dynamic Language Support
  • URL Routing

Add and Remove a assembly from GAC

To install assembly in Cache use  Gacutil.
Goto "Visual Studio Command Prompt" and type "gacutil -i <assembly_name>", where (assembly_name) is the DLL name of the project.
To uninstall assembly, type gacutil –u <assembly name> in  Visual Studio Command Prompt.

Global Assembly Cache

While using shared assemblies, to avoid Assembly being overwritten by a different version of the same assembly , shared assemblies are placed in a special directory subtree in the file system, known as the global assembly cache (GAC).
Placing shared assemblies can be done by special .Net Utilities Only.

assembly version information stored

In the Manifest.

Assembly in Net

Define Assembly 
An assembly is a fundamental unit of any .NET application. It contains the code that is executed by CLR (common language runtime).
I would like to limit the details to what is required to create and use an assembly.
However, it is important to know a few details about assemblies before we delve into creating and using it.
An assembly contains name, version, types (classes and others) created in it and details about other assemblies it references.
An assembly may be either an executable file - .EXE or a dynamic link library - .DLL


Type of Assembly:

  1. Private Assembly
  2. Shared Assembly

Private Assembly:
By default every assembly is a private assembly.
If we add a reference to a private assembly to any project, a copy of the assembly is given to the project.
So each project maintains a private copy of the assembly.

Shared Assembly:
A shared assembly is an assembly that resides in a centralized location known as the GAC (Global Assembly Cache) and that provides resources to multiple applications.
If an assembly is shared then multiple copies will not be created even when used by multiple applications.

View an Assembly Information

By using  Ildasm.exe  which is an MSIL Disassembler one can view attributes,references to other modules and assemblies.

Define SOLID

SOLID are five basic principles which help to create good software architecture. SOLID is an acronym where:-


  • S stands for SRP (Single responsibility principle).
  • O stands for OCP (Open closed principle)
  • L stands for LSP (Liskov substitution principle)
  • I stands for ISP ( Interface segregation principle)
  • D stands for DIP ( Dependency inversion principle)

Solve First Chance Exception in .NET

You most likely see these messages in Immediate Window because you have set Redirect all Output Window text to the Immediate Window in Tools - Options... - Debugging - General. That's why when you right-click in Immediate Window, you cannot see any option to disable messages. It's Output Window text and thus you need to set it in the Output Window. So open Output Window, right-click and uncheck Exception Messages from context menu. Simple but it took me one hour to find it.

Define First Chance Exception in .NET

              When an application is being debugged, the debugger gets notified whenever an exception is encountered  At this point, the application is suspended and the debugger decides how to handle the exception. The first pass through this mechanism is called a "first chance" exception.
               In Visual Studio, you may see a message in the output window that looks like this:
              A first chance exception of type 'System.ApplicationException' occurred in myapp.exe
              First chance exception messages most often do not mean there is a problem in the code. For applications / components which handle exceptions gracefully, first chance exception messages let the developer know that an exceptional situation was encountered and was handled.

differences between UNION and JOINS

A join selects columns from 2 or more tables. A union selects rows.