- 
                    Image in GridViewHow to retrive an image from database and display it in grideview control? 
- 
                    Multi ThreadHow to create, activate, work and stop a Multi Thread? 
- 
                    Defining Random NumberHow to define a random number without making an object? 
- 
                    C# UNDO and REDO FunctionsHow to acheive UNDO and REDO functions using C# 
- 
                    
- 
                    C# Indexer1. What is an indexer?2. Why we are using indexer? 
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    How do I port "synchronized" functions from Visual J++ to C#?Original Visual J++ code: public synchronized void Run() {// function body}Ported C# code: class C{public void Run(){lock(this){// function body }}public static void Main() {}} 
- 
                    From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?With regard to versioning, interfaces are less flexible than classes. With a class, you can ship version 1 and then, in version 2, decide to add another method. As long as the method is not abstract (i.e., as long as you provide a default implementation of the method), any existing derived classes continue to function with no changes. Because interfaces do not support implementation inheritance, this... 
- 
                    What optimizations does the C# compiler perform when you use the /optimize+ compiler option?The following is a response from a developer on the C# compiler team: We get rid of unused locals (i.e., locals that are never read, even if assigned).We get rid of unreachable code.We get rid of try-catch w/ an empty try.We get rid of try-finally w/ an empty try (convert to normal code...).We get rid of try-finally w/ an empty finally (convert to normal code...).We optimize branches over branches:... 
C# Interview Questions

 
  
  
  
		
Ans