Advertisement
Guest User

Untitled

a guest
May 26th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1. static class Foo{
  2.     private class Bar{
  3.         public int val;
  4.         public Bar(int v)
  5.         {
  6.             val = v;
  7.         }
  8.     }
  9.     public static List<Bar> vals = new List<Bar>();
  10.     public void addVal(int val){
  11.         vals.Add(new Bar(val));
  12.     }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement