Aliendreamer

properties аnd some logic for friend

Mar 14th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. public  int currentLapsNum;
  2. public int Laps{get;private set;}
  3.  
  4.  
  5. public int CurrentLapsNum
  6. {
  7.     get=>this.currentLapsNum;
  8.    
  9.     set=>this.currentLapsNum=value+this.Laps;
  10. }
  11. // това са ти сетъра и пропъртито в класа
  12. //а долу в логиката:
  13. this.currentLapsNum-=numofLaps;
Advertisement
Add Comment
Please, Sign In to add comment