Advertisement
viraco4a

sample

May 29th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace Longest_Increasing_Subsequence
  6. {
  7. class Town
  8. {
  9. public string Name { get; set; }
  10. public int Population { get; set; }
  11. }
  12.  
  13. class Program
  14. {
  15. static void Main()
  16. {
  17. //some logic here
  18. //сакам да направя метод, който ми връща int townPopulation и string townName
  19. }
  20.  
  21. private static Town MyImbaMethod()
  22. {
  23. int townPopulation = 100;
  24. string townName = "Tristram";
  25. Town myTown = new Town();
  26. myTown.Name = townName;
  27. myTown.Population = townPopulation;
  28. return myTown;
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement