locked
Generic Types RRS feed

  • Question

  • User1820827484 posted

    Hello Community, 

    I have following scenario! 

    I developed an interface. 

    public interface iDataAction
        {
            int create();
        }

    There is another class which is implementing the iDataAction interface. 

    public class ContactBO: iDataAction
        {
    
            public int create() { return 0; }
            // constructor
            public ContactBO() { 
            }
        }

    Infact, I want to implement this interface to ensure that each Business Class must implement the CRUD operation for database. From presentation layer, I need to post the ContactDTO  object to access in create(). So how can I make Generic Type Param? 

    Tuesday, July 22, 2014 12:26 PM

Answers