- class userdetails
- {
-
- public string UserId { get; set; }
- public string Username { get; set; }
-
- public void userdata(string nameofbike)//Input from class1
- {
- string userid;
- string name;
- //do something....
- //Add it in a array and return the values
- }
I have a main function.I have created two classes in separate file .Initially i sent the input for class1 from main function.And from there i sent a data to my second class,Where some operation performed and I want to get that data in class2 file in my current class and return to main function.Give me some guidance.