1 2 >   Sort: Date

What is Native Image Generator (Ngen.exe)
What is Native Image Generator (Ngen.exe)? The Native Image Generator utility (Ngen.exe) allows you to run the JIT compiler on your assembly's MSIL and generate native machine code which is cached to disk. After the image is created .NET runtime will use the image to run the code rather than from th...
2007-10-22, 8456👍, 0💬

If we have two version of same assembly in GAC how do we make a
If we have two version of same assembly in GAC how do we make a choice ? OK first let’s try to understand what the interviewer is talking about. Let’s say you have made an application and its using a DLL which is present in GAC. Now for some reason you make second version of the same DLL and put it ...
2007-10-22, 8074👍, 0💬

What is the concept of strong names
How do we generate strong names ? or What is use the of SN.EXE ? or How do we apply strong names to assembly? or How do you sign an assembly? Strong name is similar to GUID(It is supposed to be unique in space and time) in COM components.Strong Name is only needed when we need to deploy assembly in ...
2007-10-22, 7103👍, 0💬

What is CodeDom
What is CodeDom? “CodeDom” is an object model which represents actually a source code. It is designed to be language independent - once you create a “CodeDom” hierarchy for a program we can then generate the source code in any .NET compliant language. So let’s try to do something real practical an...
2007-10-22, 6357👍, 0💬

What is a IL
What is MSIL or CIL , What is JIT? (IL)Intermediate Language is also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code is compiled to IL. This IL is then converted to machine code at the point where the software is installed, or at run-time b...
2007-10-22, 5773👍, 0💬

How to prevent my .NET DLL to be decompiled
How to prevent my .NET DLL to be decompiled? By design .NET embeds rich Meta data inside the executable code using MSIL. Any one can easily decompile your DLL back using tools like ILDASM (owned by Microsoft) or Reflector for .NET which is a third party. Secondly there are many third party tools whi...
2007-10-22, 5762👍, 0💬

What is GAC
What are situations when you register .NET assembly in GAC ? GAC (Global Assembly Cache) is used where shared .NET assembly reside. GAC is used in the following situations :- If the application has to be shared among several application. If the assembly has some special security requirements like on...
2007-10-22, 5391👍, 0💬

What is a CLR?
What is a CLR? Full form of CLR is Common Language Runtime and it forms the heart of the .NET framework. All Languages have runtime and its the responsibility of the runtime to take care of the code execution of the program. For example VC++ has MSCRT40.DLL,VB6 has MSVBVM60.DLL, Java has Java Virtua...
2007-10-22, 5364👍, 0💬

What is Manifest
What is Manifest? Assembly metadata is stored in Manifest. Manifest contains all the metadata needed to do the following things (See Figure Manifest View for more details): Version of assembly Security identity Scope of the assembly Resolve references to resources and classes. The assembly manifest ...
2007-10-22, 5359👍, 0💬

What is a CTS
What is a CTS? In order that two language communicate smoothly CLR has CTS (Common Type System).Example in VB you have “Integer” and in C++ you have “long” these datatypes are not compatible so the interfacing between them is very complicated. In order to able that two different languages can commu...
2007-10-22, 5296👍, 0💬

What is ILDASM
If you want to view a Assembly how do you go about it ? When it comes to understanding of internals nothing can beat ILDASM. ILDASM basically converts the whole exe or dll in to IL code. To run ILDASM you have to go to "C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin". Note that i ha...
2007-10-22, 5292👍, 0💬

Is versioning applicable to private assemblies
Is versioning applicable to private assemblies? Versioning concept is only applicable to global assembly cache (GAC) as private assembly lie in their individual folders.
2007-10-22, 5223👍, 0💬

What is Delay signing
What is Delay signing ? During development process you will need strong name keys to be exposed to developer which is not a good practice from security aspect point of view.In such situations you can assign the key later on and during development you an use delay signing Following is process to dela...
2007-10-22, 5176👍, 0💬

What is the difference between System exceptions and Application
What is the difference between System exceptions and Application exceptions? All exception derives from Exception Base class. Exceptions can be generated programmatically or can be generated by system. Application Exception serves as the base class for all applicationspecific exception classes. It d...
2007-10-22, 5143👍, 0💬

What is a CLS
What is a CLS(Common Language Specification)? This is a subset of the CTS which all .NET languages are expected to support. It was always a dream of Microsoft to unite all different languages in to one umbrella and CLS is one step towards that. Microsoft has defined CLS which are nothing but guideli...
2007-10-22, 5080👍, 0💬

What are the technical limitations of COM Interop?
Managed Code and Unmanaged Code related ASP.NET - - What are the technical limitations of COM Interop? The .NET Framework was developed to address the limitations of COM. Because of this evolution, there are limits to the .NET features that you can use from COM. The following list describes these li...
2009-04-14, 5050👍, 0💬

What is CODE Access security
What is CODE Access security? CAS is part of .NET security model that determines whether or not a piece of code is allowed to run and what resources it can use while running. Example CAS will allow an application to read but not to write and delete a file or a resource from a folder..
2007-10-22, 5039👍, 0💬

What is the difference between Convert.toString and .toString()
What is the difference between Convert.toString and .toString() method ? Just to give an understanding of what the above question means seethe below code. int i =0; MessageBox.Show(i.ToString()); MessageBox.Show(Convert.ToStri ng(i));We can convert the integer “i” using “i.ToString()” or “Convert....
2007-10-22, 4914👍, 0💬

What is reflection
What is reflection? All .NET assemblies have metadata information stored about the types defined in modules. This metadata information can be accessed by mechanism called as “Reflection”.System. Reflection can be used to browse through the metadata information. Using reflection you can also dynamica...
2007-10-22, 4801👍, 0💬

What are benefits and limitations of using Hidden frames?
.NET INTERVIEW QUESTIONS - What are benefits and limitations of using Hidden frames? Following are the benefits of using hidden frames: * You can cache more than one data field. * The ability to cache and access data items stored in different hidden forms. * The ability to access JScript® variable v...
2009-07-14, 4790👍, 0💬

What are different types of JIT
What are different types of JIT ? Note :- This question can only be asked when the interviewer does not know what he wants. It was asked to me in one of interview and for 15 minutes he was roaming around the same question in order to get answer from me (requirement was for a simple database project)...
2007-10-22, 4783👍, 0💬

What are the practical limitations of using COM objects?
Managed Code and Unmanaged Code related ASP.NET - What are the practical limitations of using COM objects? The following are the practical limitations of using COM objects from .NET: Shared solutions might not allow COM objects : ASP.NET host service providers that use nondedicated servers can limit...
2009-04-21, 4734👍, 0💬

What is the difference between VB.NET and C#
What is the difference between VB.NET and C# ? Well this is the most debatable issue in .NET community and people treat there languages like religion. Its a subjective matter which language is best. Some like VB.NET’s natural style and some like professional and terse C# syntaxes. Both use the same ...
2007-10-22, 4709👍, 0💬

What is concept of Boxing and Unboxing
What is concept of Boxing and Unboxing ? Boxing permits any value type to be implicitly converted to type object or to any interface type implemented by value type. Boxing is a process in which object instances are created and copy values in to that instance. Unboxing is vice versa of boxing operati...
2007-10-22, 4700👍, 0💬

1 2 >   Sort: Date