creation of object inside the whileloop in C# RRS feed

  • Question

  • User87195929 posted

    Hi all

    i have some dout in C#



     empolyee e1=new empolyee();

    e1.name="some value from DB";

    e1.add="some value from DB";


    in this code every iteration employee object is created,, if so what will happen for previous object

    please explain me

    Tuesday, May 8, 2018 8:30 AM

All replies