How to create ZIP file using C#? How to compress and decompress files using C#?

http://moondash.co.in/?ref=85C19455999C

 Previously, we had to use some thrid party softwares or plugins to create ZIP archive files. Now in .NET Framework 4.5, new namespace is added. It is very simple and one line code. :)

  • System.IO.Compression
  • System.IO.Compression.FileSystem

 Some when we are having so many attachments to be downloaded all together. It is a better option to provide user that they can download all files in ZIP file. GMail also provides the same feature when we have more attachments.More...

.NET Interview Questions - Basic

1. What is IL or MSIL?

 IL is acronym for Intermediate language; is also known as MSIL or CIL (Common Intermediate Language). All .NET source code is compiled in IL and IL is then converted into machine code at run time by JIT (Just-In-Time) compiler.

2. What is CLR?

 Common language runtime is the heart of the .NET framework. CLR is responsible for:

a) Garbage collection: GC runs automatically in .NET framework, manages the memory and removes the memory leaks when some object is not in use.

b) Code access security: CAS takes care of rights of program execution as per security configuration of machine.More...

.NET Interview Questions - Threading

1. What is multi-tasking?

It is a feature of Operating Systems which helps to run more than one applications at a time like Internet Explorer, Visual Studio and SQL Server etc.

2. What is multi-threading?

We can say that it is a sub-set of multi-tasking. It allows us to perform more than one operations at a time in a single application. For example: When we type in Microsoft Word at a same that does spelling check also in seperate thread.More...