Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1.  
  2. public class Thingy
  3. {
  4.     public int      VarOneExample;
  5.     public int      VarTwoExample;
  6.     public string   VarThreeExample;
  7.     public string   VarFourExample;
  8.     public string   VarFiveExample;
  9.  
  10.  
  11.  
  12. }
  13.  
  14. public class TestClass
  15. {
  16.     Thingy myThingy = new Thingy()
  17.     {
  18.         VarOneExample = 1,
  19.         VarTwoExample = 2,
  20.         VarThreeExample = "t1",
  21.         VarFourExample = "t2",
  22.         VarFiveExample = "t3",
  23.     };
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement