Advertisement
Guest User

Untitled

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