0

HI, I have a class1 and Class2 which is generic class and when i create object for class2 which should be able to acces class1 method which is MethodA() please advise.Thanks in advance

namespace generics1
{
    public class B
    {
       public void methodA()
        {


        }

    }
    public class A<T>
    {
        public void methodB()
        {
            base.MemberwiseClone();

        }

    }
    class Program
    {
        static void Main(string[] args)
        {
            A<B> obj = new A<B>();

        }
    }
}
2
Contributors
1
Reply
15
Views
3 Years
Discussion Span
Last Post by Suzie999
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.