예제 #1
0
        static MapboxNoFly()
        {
            Instance = new MapboxNoFly();

            Type mytype = typeof(GMapProviders);
            FieldInfo field = mytype.GetField("DbHash", BindingFlags.Static | BindingFlags.NonPublic);
            Dictionary<int, GMapProvider> list = (Dictionary<int, GMapProvider>)field.GetValue(Instance);

            list.Add(Instance.DbId, Instance);
        }
예제 #2
0
        static MapboxNoFly()
        {
            Instance = new MapboxNoFly();

            Type      mytype = typeof(GMapProviders);
            FieldInfo field  = mytype.GetField("DbHash", BindingFlags.Static | BindingFlags.NonPublic);
            Dictionary <int, GMapProvider> list = (Dictionary <int, GMapProvider>)field.GetValue(Instance);

            list.Add(Instance.DbId, Instance);
        }