Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. public class SomeAcrh {
  2.      private bool passBool = true;
  3.      private int someInt = 10;
  4.  
  5.     public int GetSomeInt(){
  6.         if(passBool){
  7.             return this.someInt;
  8.         }
  9.         return 0;
  10.     }
  11.  
  12.     public void ChangePrivateState(){
  13.         this.passBool = !this.passBool;
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement