Guest User

Untitled

a guest
Jul 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. namespace MyNamespace
  2. {
  3. public class MyClass
  4. {
  5. private string property;
  6. public string Attribute;
  7.  
  8. public string Property
  9. {
  10. get { return property + " blah"; }
  11. set { property = value + " bluh"; }
  12. }
  13.  
  14. public void Call(string param1, int param2, bool param3)
  15. {
  16. Console.WriteLine("Normal call");
  17. }
  18.  
  19. public static void SCall(string param1, int param2, bool param3)
  20. {
  21. Console.WriteLine("Static call");
  22. }
  23. }
  24. }
  25.  
  26. Attribute = "bla"; // results in Attribute == "bla"
  27.  
  28. cout << Attribute; // results in output of e. g. "bla"
  29.  
  30. Property = "bla"; // results in property = "bla blah";
  31.  
  32. cout << Property; // results in output of e.g. "bla blah bluh"
Add Comment
Please, Sign In to add comment