Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public class ListTest
  2. {
  3. public List<int> MyList;
  4. public ListTest()
  5. {
  6. MyList = new List<int> { 1, 2, 3 };
  7. }
  8. }
  9.  
  10. var listTest = new ListTest()
  11. {
  12. MyList = {4,5,6}
  13. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement