コード例 #1
0
 private void RegisterResources(Type layoutClassType, JavaDictionary <string, int> container)
 {
     foreach (var field in layoutClassType.GetFields())
     {
         var name = CreateName(field.Name);
         if (container.ContainsKey(name))
         {
             container.Remove(name);
         }
         container.Add(name, field.GetValue(null));
     }
 }