Exemplo n.º 1
0
 public static ConstantRepo getInstance()
 {
     if (instance == null)
     {
         instance = new ConstantRepo();
     }
     return(instance);
 }
Exemplo n.º 2
0
 public void clean()
 {
     map.Clear();
     instance = null;
 }
Exemplo n.º 3
0
        private static void setupValue(ValueAttribute va, object obj, FieldInfo f)
        {
            object val = ConstantRepo.getInstance().get(va.name);

            f.SetValue(obj, val);
        }