02.07.2013 Views

.NET Interview Questions 4 th Edition By Shivprasad ... - A2Z Dotnet

.NET Interview Questions 4 th Edition By Shivprasad ... - A2Z Dotnet

.NET Interview Questions 4 th Edition By Shivprasad ... - A2Z Dotnet

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure: - 1.10 Exception Hierarchy<br />

Note:- Frankly we have always relied on using Microsoft exception<br />

application blocks. As such I have never used application exception; we<br />

<strong>th</strong>ink most of <strong>th</strong>e work can be done using System exception classes.<br />

(I)What is CODE Access security?<br />

CAS is part of .<strong>NET</strong> security model <strong>th</strong>at determines whe<strong>th</strong>er a piece of code is allowed to run and<br />

what resources it can use while running. Example CAS will allow an application to read but not<br />

to write and delete a file or a resource from a folder..<br />

(I)What is a satellite assembly?<br />

Refer Localization chapter for more details<br />

(A) How to prevent my .<strong>NET</strong> DLL to be decompiled?<br />

<strong>By</strong> design, .<strong>NET</strong> embeds rich Meta data inside <strong>th</strong>e executable code using MSIL. Any one can<br />

easily decompile your DLL back using tools like ILDASM (owned by Microsoft) or Reflector for<br />

.<strong>NET</strong> which is a <strong>th</strong>ird party. Secondly, <strong>th</strong>ere are many <strong>th</strong>ird party tools, which make <strong>th</strong>is<br />

decompiling process a click away. So any one can easily look in to your assemblies and reverse<br />

engineer <strong>th</strong>em back in to actual source code and understand some real good logic, which can<br />

make it easy to crack your application.<br />

The process by which you can stop <strong>th</strong>is reverse engineering is using “obfuscation”. It is a<br />

technique, which will foil <strong>th</strong>e decompilers. Many <strong>th</strong>ird parties (XenoCode, Demeanor for .<strong>NET</strong>)<br />

provide .<strong>NET</strong> obfuscation solution. Microsoft includes one <strong>th</strong>at is Dotfuscator Community<br />

<strong>Edition</strong> wi<strong>th</strong> Visual Studio.<strong>NET</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!