[bgen] Make various type maps instance members.

This commit is contained in:
Rolf Bjarne Kvinge 2019-04-11 17:14:43 +02:00
Родитель ba721ed007
Коммит 81d6b1aa24
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1264,8 +1264,8 @@ public partial class Generator : IMemberGatherer {
return type.Assembly.GetType (type.FullName + "Extensions") != null;
}
static Dictionary<Type,string> nsvalue_create_map;
static Dictionary<Type,string> NSValueCreateMap {
Dictionary<Type,string> nsvalue_create_map;
Dictionary<Type,string> NSValueCreateMap {
get {
if (nsvalue_create_map == null) {
nsvalue_create_map = new Dictionary<Type, string> ();
@ -1385,8 +1385,8 @@ public partial class Generator : IMemberGatherer {
return temp;
}
static Dictionary<Type,string> nsnumber_return_map;
static Dictionary<Type,string> NSNumberReturnMap {
Dictionary<Type,string> nsnumber_return_map;
Dictionary<Type,string> NSNumberReturnMap {
get {
if (nsnumber_return_map == null) {
nsnumber_return_map = new Dictionary<Type, string> {
@ -1412,8 +1412,8 @@ public partial class Generator : IMemberGatherer {
}
}
static Dictionary<Type,string> nsvalue_return_map;
static Dictionary<Type,string> NSValueReturnMap {
Dictionary<Type,string> nsvalue_return_map;
Dictionary<Type,string> NSValueReturnMap {
get {
if (nsvalue_return_map == null) {
nsvalue_return_map = new Dictionary<Type, string> {