How to declare an instance which its type is user-defined in C#
        Posted  
        
            by Shaza
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Shaza
        
        
        
        Published on 2010-05-01T15:21:19Z
        Indexed on 
            2010/05/01
            15:27 UTC
        
        
        Read the original article
        Hit count: 274
        
Hey all,
Simply my question is about defining the type of an instance in run time, and this type is user-defined. Something which looks like this:
Type instance1;
In run time, the user is going to choose for example "int", then there 'll be,
int instance1;
Any suggestions?? is downCasting efficient here?
© Stack Overflow or respective owner