File: mapscriptPINVOKE.cs

package info (click to toggle)
mapserver 5.0.3-3%2Blenny7
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,556 kB
  • ctags: 12,645
  • sloc: ansic: 168,024; cs: 8,534; python: 4,618; sh: 4,213; cpp: 4,059; perl: 2,781; makefile: 787; lex: 564; java: 415; yacc: 334; tcl: 158; ruby: 53
file content (3243 lines) | stat: -rw-r--r-- 155,191 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.31
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


using System;
using System.Runtime.InteropServices;

class mapscriptPINVOKE {

  protected class SWIGExceptionHelper {

    public delegate void ExceptionDelegate(string message);
    public delegate void ExceptionArgumentDelegate(string message, string paramName);

    static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException);
    static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException);
    static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException);
    static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException);
    static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException);
    static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException);
    static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException);
    static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException);
    static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException);
    static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException);
    static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException);

    static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException);
    static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException);
    static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException);

    [DllImport("mapscript", EntryPoint="SWIGRegisterExceptionCallbacks_mapscript")]
    public static extern void SWIGRegisterExceptionCallbacks_mapscript(
                                ExceptionDelegate applicationDelegate,
                                ExceptionDelegate arithmeticDelegate,
                                ExceptionDelegate divideByZeroDelegate, 
                                ExceptionDelegate indexOutOfRangeDelegate, 
                                ExceptionDelegate invalidCastDelegate,
                                ExceptionDelegate invalidOperationDelegate,
                                ExceptionDelegate ioDelegate,
                                ExceptionDelegate nullReferenceDelegate,
                                ExceptionDelegate outOfMemoryDelegate, 
                                ExceptionDelegate overflowDelegate, 
                                ExceptionDelegate systemExceptionDelegate);

    [DllImport("mapscript", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_mapscript")]
    public static extern void SWIGRegisterExceptionCallbacksArgument_mapscript(
                                ExceptionArgumentDelegate argumentDelegate,
                                ExceptionArgumentDelegate argumentNullDelegate,
                                ExceptionArgumentDelegate argumentOutOfRangeDelegate);

    static void SetPendingApplicationException(string message) {
      SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve()));
    }
    static void SetPendingArithmeticException(string message) {
      SWIGPendingException.Set(new System.ArithmeticException(message, SWIGPendingException.Retrieve()));
    }
    static void SetPendingDivideByZeroException(string message) {
      SWIGPendingException.Set(new System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
    }
    static void SetPendingIndexOutOfRangeException(string message) {
      SWIGPendingException.Set(new System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
    }
    static void SetPendingInvalidCastException(string message) {
      SWIGPendingException.Set(new System.InvalidCastException(message, SWIGPendingException.Retrieve()));
    }
    static void SetPendingInvalidOperationException(string message) {
      SWIGPendingException.Set(new System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
    }
    static void SetPendingIOException(string message) {
      SWIGPendingException.Set(new System.IO.IOException(message, SWIGPendingException.Retrieve()));
    }
    static void SetPendingNullReferenceException(string message) {
      SWIGPendingException.Set(new System.NullReferenceException(message, SWIGPendingException.Retrieve()));
    }
    static void SetPendingOutOfMemoryException(string message) {
      SWIGPendingException.Set(new System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
    }
    static void SetPendingOverflowException(string message) {
      SWIGPendingException.Set(new System.OverflowException(message, SWIGPendingException.Retrieve()));
    }
    static void SetPendingSystemException(string message) {
      SWIGPendingException.Set(new System.SystemException(message, SWIGPendingException.Retrieve()));
    }

    static void SetPendingArgumentException(string message, string paramName) {
      SWIGPendingException.Set(new System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
    }
    static void SetPendingArgumentNullException(string message, string paramName) {
      Exception e = SWIGPendingException.Retrieve();
      if (e != null) message = message + " Inner Exception: " + e.Message;
      SWIGPendingException.Set(new System.ArgumentNullException(paramName, message));
    }
    static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
      Exception e = SWIGPendingException.Retrieve();
      if (e != null) message = message + " Inner Exception: " + e.Message;
      SWIGPendingException.Set(new System.ArgumentOutOfRangeException(paramName, message));
    }

    static SWIGExceptionHelper() {
      SWIGRegisterExceptionCallbacks_mapscript(
                                applicationDelegate,
                                arithmeticDelegate,
                                divideByZeroDelegate,
                                indexOutOfRangeDelegate,
                                invalidCastDelegate,
                                invalidOperationDelegate,
                                ioDelegate,
                                nullReferenceDelegate,
                                outOfMemoryDelegate,
                                overflowDelegate,
                                systemDelegate);

      SWIGRegisterExceptionCallbacksArgument_mapscript(
                                argumentDelegate,
                                argumentNullDelegate,
                                argumentOutOfRangeDelegate);
    }
  }

  protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();

  public class SWIGPendingException {
    [ThreadStatic]
    private static Exception pendingException = null;
    private static int numExceptionsPending = 0;

    public static bool Pending {
      get {
        bool pending = false;
        if (numExceptionsPending > 0)
          if (pendingException != null)
            pending = true;
        return pending;
      } 
    }

    public static void Set(Exception e) {
      if (pendingException != null)
        throw new ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
      pendingException = e;
      lock(typeof(mapscriptPINVOKE)) {
        numExceptionsPending++;
      }
    }

    public static Exception Retrieve() {
      Exception e = null;
      if (numExceptionsPending > 0) {
        if (pendingException != null) {
          e = pendingException;
          pendingException = null;
          lock(typeof(mapscriptPINVOKE)) {
            numExceptionsPending--;
          }
        }
      }
      return e;
    }
  }


  protected class SWIGStringHelper {

    public delegate string SWIGStringDelegate(string message);
    static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);

    [DllImport("mapscript", EntryPoint="SWIGRegisterStringCallback_mapscript")]
    public static extern void SWIGRegisterStringCallback_mapscript(SWIGStringDelegate stringDelegate);

    static string CreateString(string cString) {
      return cString;
    }

    static SWIGStringHelper() {
      SWIGRegisterStringCallback_mapscript(stringDelegate);
    }
  }

  static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();


  [DllImport("mapscript", EntryPoint="CSharp_new_intarray")]
  public static extern IntPtr new_intarray(int jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_delete_intarray")]
  public static extern void delete_intarray(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_intarray_getitem")]
  public static extern int intarray_getitem(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_intarray_setitem")]
  public static extern void intarray_setitem(HandleRef jarg1, int jarg2, int jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_intarray_cast")]
  public static extern IntPtr intarray_cast(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_intarray_frompointer")]
  public static extern IntPtr intarray_frompointer(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_MAX_ERROR_LEN_get")]
  public static extern int MAX_ERROR_LEN_get();

  protected class mapscriptHelper 
	{
		static mapscriptHelper() 
		{
			mapscript.msSetup();
		}
		 ~mapscriptHelper() 
		{
			//mapscript.msCleanup();
		}
	}
	protected static mapscriptHelper themapscriptHelper = new mapscriptHelper();


  public class StringArrayMarshal : IDisposable {
    public readonly IntPtr[] _ar;
    public StringArrayMarshal(string[] ar) {
      _ar = new IntPtr[ar.Length];
      for (int cx = 0; cx < _ar.Length; cx++) {
	      _ar[cx] = System.Runtime.InteropServices.Marshal.StringToHGlobalAnsi(ar[cx]);
      }
    }
    public virtual void Dispose() {
	  for (int cx = 0; cx < _ar.Length; cx++) {
          System.Runtime.InteropServices.Marshal.FreeHGlobal(_ar[cx]);
      }
      GC.SuppressFinalize(this);
    }
  }


  public delegate void SWIGByteArrayDelegate(IntPtr data, int size);


  protected class SWIGByteArrayHelper 
	{
		public delegate void SWIGByteArrayDelegate(IntPtr data, int size);
		static SWIGByteArrayDelegate bytearrayDelegate = new SWIGByteArrayDelegate(CreateByteArray);

		[DllImport("mapscript", EntryPoint="SWIGRegisterByteArrayCallback_mapscript")]
		public static extern void SWIGRegisterByteArrayCallback_mapscript(SWIGByteArrayDelegate bytearrayDelegate);

		static void CreateByteArray(IntPtr data, int size) 
		{
			arraybuffer = new byte[size];
			Marshal.Copy(data, arraybuffer, 0, size);
		}

		static SWIGByteArrayHelper() 
		{
			SWIGRegisterByteArrayCallback_mapscript(bytearrayDelegate);
		}
	}
	protected static SWIGByteArrayHelper bytearrayHelper = new SWIGByteArrayHelper();
	[ThreadStatic] 
	private static byte[] arraybuffer;

	internal static byte[] GetBytes()
	{
		return arraybuffer;
	}


  [DllImport("mapscript", EntryPoint="CSharp_MS_VERSION_get")]
  public static extern string MS_VERSION_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_TRUE_get")]
  public static extern int MS_TRUE_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_FALSE_get")]
  public static extern int MS_FALSE_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_ON_get")]
  public static extern int MS_ON_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_OFF_get")]
  public static extern int MS_OFF_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_DEFAULT_get")]
  public static extern int MS_DEFAULT_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_EMBED_get")]
  public static extern int MS_EMBED_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_DELETE_get")]
  public static extern int MS_DELETE_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_YES_get")]
  public static extern int MS_YES_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_NO_get")]
  public static extern int MS_NO_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SINGLE_get")]
  public static extern int MS_SINGLE_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_MULTIPLE_get")]
  public static extern int MS_MULTIPLE_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_GD_ALPHA_get")]
  public static extern int MS_GD_ALPHA_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_LAYER_ALLOCSIZE_get")]
  public static extern int MS_LAYER_ALLOCSIZE_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_CLASS_ALLOCSIZE_get")]
  public static extern int MS_CLASS_ALLOCSIZE_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_STYLE_ALLOCSIZE_get")]
  public static extern int MS_STYLE_ALLOCSIZE_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_MAX_LABEL_PRIORITY_get")]
  public static extern int MS_MAX_LABEL_PRIORITY_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_DEFAULT_LABEL_PRIORITY_get")]
  public static extern int MS_DEFAULT_LABEL_PRIORITY_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_POSITIONS_LENGTH_get")]
  public static extern int MS_POSITIONS_LENGTH_get();

  [DllImport("mapscript", EntryPoint="CSharp_fontSetObj_filename_get")]
  public static extern string fontSetObj_filename_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_fontSetObj_numfonts_get")]
  public static extern int fontSetObj_numfonts_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_fontSetObj_fonts_get")]
  public static extern IntPtr fontSetObj_fonts_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_fontSetObj")]
  public static extern IntPtr new_fontSetObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_fontSetObj")]
  public static extern void delete_fontSetObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_name_set")]
  public static extern void outputFormatObj_name_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_name_get")]
  public static extern string outputFormatObj_name_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_mimetype_set")]
  public static extern void outputFormatObj_mimetype_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_mimetype_get")]
  public static extern string outputFormatObj_mimetype_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_driver_set")]
  public static extern void outputFormatObj_driver_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_driver_get")]
  public static extern string outputFormatObj_driver_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_extension_set")]
  public static extern void outputFormatObj_extension_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_extension_get")]
  public static extern string outputFormatObj_extension_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_renderer_set")]
  public static extern void outputFormatObj_renderer_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_renderer_get")]
  public static extern int outputFormatObj_renderer_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_imagemode_set")]
  public static extern void outputFormatObj_imagemode_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_imagemode_get")]
  public static extern int outputFormatObj_imagemode_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_transparent_set")]
  public static extern void outputFormatObj_transparent_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_transparent_get")]
  public static extern int outputFormatObj_transparent_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_bands_set")]
  public static extern void outputFormatObj_bands_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_bands_get")]
  public static extern int outputFormatObj_bands_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_numformatoptions_set")]
  public static extern void outputFormatObj_numformatoptions_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_numformatoptions_get")]
  public static extern int outputFormatObj_numformatoptions_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_formatoptions_set")]
  public static extern void outputFormatObj_formatoptions_set(HandleRef jarg1, IntPtr[] jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_formatoptions_get")]
  public static extern IntPtr outputFormatObj_formatoptions_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_refcount_set")]
  public static extern void outputFormatObj_refcount_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_refcount_get")]
  public static extern int outputFormatObj_refcount_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_inmapfile_set")]
  public static extern void outputFormatObj_inmapfile_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_inmapfile_get")]
  public static extern int outputFormatObj_inmapfile_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_outputFormatObj")]
  public static extern IntPtr new_outputFormatObj(string jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_delete_outputFormatObj")]
  public static extern void delete_outputFormatObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_setExtension")]
  public static extern void outputFormatObj_setExtension(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_setMimetype")]
  public static extern void outputFormatObj_setMimetype(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_setOption")]
  public static extern void outputFormatObj_setOption(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_validate")]
  public static extern int outputFormatObj_validate(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_getOption")]
  public static extern string outputFormatObj_getOption(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_MS_NOOVERRIDE_get")]
  public static extern int MS_NOOVERRIDE_get();

  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_height_set")]
  public static extern void queryMapObj_height_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_height_get")]
  public static extern int queryMapObj_height_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_width_set")]
  public static extern void queryMapObj_width_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_width_get")]
  public static extern int queryMapObj_width_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_status_set")]
  public static extern void queryMapObj_status_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_status_get")]
  public static extern int queryMapObj_status_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_style_set")]
  public static extern void queryMapObj_style_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_style_get")]
  public static extern int queryMapObj_style_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_color_set")]
  public static extern void queryMapObj_color_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_color_get")]
  public static extern IntPtr queryMapObj_color_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_updateFromString")]
  public static extern int queryMapObj_updateFromString(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_new_queryMapObj")]
  public static extern IntPtr new_queryMapObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_queryMapObj")]
  public static extern void delete_queryMapObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_font_set")]
  public static extern void labelObj_font_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_font_get")]
  public static extern string labelObj_font_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_type_set")]
  public static extern void labelObj_type_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_type_get")]
  public static extern int labelObj_type_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_color_set")]
  public static extern void labelObj_color_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_color_get")]
  public static extern IntPtr labelObj_color_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_outlinecolor_set")]
  public static extern void labelObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_outlinecolor_get")]
  public static extern IntPtr labelObj_outlinecolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowcolor_set")]
  public static extern void labelObj_shadowcolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowcolor_get")]
  public static extern IntPtr labelObj_shadowcolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowsizex_set")]
  public static extern void labelObj_shadowsizex_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowsizex_get")]
  public static extern int labelObj_shadowsizex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowsizey_set")]
  public static extern void labelObj_shadowsizey_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowsizey_get")]
  public static extern int labelObj_shadowsizey_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_backgroundcolor_set")]
  public static extern void labelObj_backgroundcolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_backgroundcolor_get")]
  public static extern IntPtr labelObj_backgroundcolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_backgroundshadowcolor_set")]
  public static extern void labelObj_backgroundshadowcolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_backgroundshadowcolor_get")]
  public static extern IntPtr labelObj_backgroundshadowcolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_backgroundshadowsizex_set")]
  public static extern void labelObj_backgroundshadowsizex_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_backgroundshadowsizex_get")]
  public static extern int labelObj_backgroundshadowsizex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_backgroundshadowsizey_set")]
  public static extern void labelObj_backgroundshadowsizey_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_backgroundshadowsizey_get")]
  public static extern int labelObj_backgroundshadowsizey_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_size_set")]
  public static extern void labelObj_size_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_size_get")]
  public static extern int labelObj_size_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minsize_set")]
  public static extern void labelObj_minsize_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minsize_get")]
  public static extern int labelObj_minsize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_maxsize_set")]
  public static extern void labelObj_maxsize_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_maxsize_get")]
  public static extern int labelObj_maxsize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_position_set")]
  public static extern void labelObj_position_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_position_get")]
  public static extern int labelObj_position_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_offsetx_set")]
  public static extern void labelObj_offsetx_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_offsetx_get")]
  public static extern int labelObj_offsetx_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_offsety_set")]
  public static extern void labelObj_offsety_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_offsety_get")]
  public static extern int labelObj_offsety_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_angle_set")]
  public static extern void labelObj_angle_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_angle_get")]
  public static extern double labelObj_angle_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_autoangle_set")]
  public static extern void labelObj_autoangle_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_autoangle_get")]
  public static extern int labelObj_autoangle_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_autofollow_set")]
  public static extern void labelObj_autofollow_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_autofollow_get")]
  public static extern int labelObj_autofollow_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_buffer_set")]
  public static extern void labelObj_buffer_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_buffer_get")]
  public static extern int labelObj_buffer_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_antialias_set")]
  public static extern void labelObj_antialias_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_antialias_get")]
  public static extern int labelObj_antialias_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_wrap_set")]
  public static extern void labelObj_wrap_set(HandleRef jarg1, char jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_wrap_get")]
  public static extern char labelObj_wrap_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minfeaturesize_set")]
  public static extern void labelObj_minfeaturesize_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minfeaturesize_get")]
  public static extern int labelObj_minfeaturesize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_autominfeaturesize_set")]
  public static extern void labelObj_autominfeaturesize_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_autominfeaturesize_get")]
  public static extern int labelObj_autominfeaturesize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_mindistance_set")]
  public static extern void labelObj_mindistance_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_mindistance_get")]
  public static extern int labelObj_mindistance_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_partials_set")]
  public static extern void labelObj_partials_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_partials_get")]
  public static extern int labelObj_partials_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_force_set")]
  public static extern void labelObj_force_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_force_get")]
  public static extern int labelObj_force_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_encoding_set")]
  public static extern void labelObj_encoding_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_encoding_get")]
  public static extern string labelObj_encoding_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_priority_set")]
  public static extern void labelObj_priority_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_priority_get")]
  public static extern int labelObj_priority_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_updateFromString")]
  public static extern int labelObj_updateFromString(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_removeBinding")]
  public static extern int labelObj_removeBinding(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelObj_setBinding")]
  public static extern int labelObj_setBinding(HandleRef jarg1, int jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_new_labelObj")]
  public static extern IntPtr new_labelObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_labelObj")]
  public static extern void delete_labelObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_log_set")]
  public static extern void webObj_log_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_log_get")]
  public static extern string webObj_log_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_imagepath_set")]
  public static extern void webObj_imagepath_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_imagepath_get")]
  public static extern string webObj_imagepath_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_imageurl_set")]
  public static extern void webObj_imageurl_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_imageurl_get")]
  public static extern string webObj_imageurl_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_map_get")]
  public static extern IntPtr webObj_map_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_template_set")]
  public static extern void webObj_template_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_template_get")]
  public static extern string webObj_template_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_header_set")]
  public static extern void webObj_header_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_header_get")]
  public static extern string webObj_header_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_footer_set")]
  public static extern void webObj_footer_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_footer_get")]
  public static extern string webObj_footer_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_empty_set")]
  public static extern void webObj_empty_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_empty_get")]
  public static extern string webObj_empty_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_error_set")]
  public static extern void webObj_error_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_error_get")]
  public static extern string webObj_error_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_extent_set")]
  public static extern void webObj_extent_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_extent_get")]
  public static extern IntPtr webObj_extent_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_minscaledenom_set")]
  public static extern void webObj_minscaledenom_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_minscaledenom_get")]
  public static extern double webObj_minscaledenom_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_maxscaledenom_set")]
  public static extern void webObj_maxscaledenom_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_maxscaledenom_get")]
  public static extern double webObj_maxscaledenom_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_mintemplate_set")]
  public static extern void webObj_mintemplate_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_mintemplate_get")]
  public static extern string webObj_mintemplate_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_maxtemplate_set")]
  public static extern void webObj_maxtemplate_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_maxtemplate_get")]
  public static extern string webObj_maxtemplate_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_queryformat_set")]
  public static extern void webObj_queryformat_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_queryformat_get")]
  public static extern string webObj_queryformat_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_legendformat_set")]
  public static extern void webObj_legendformat_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_legendformat_get")]
  public static extern string webObj_legendformat_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_browseformat_set")]
  public static extern void webObj_browseformat_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_browseformat_get")]
  public static extern string webObj_browseformat_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_metadata_get")]
  public static extern IntPtr webObj_metadata_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_webObj")]
  public static extern IntPtr new_webObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_webObj")]
  public static extern void delete_webObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_webObj_updateFromString")]
  public static extern int webObj_updateFromString(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_refcount_get")]
  public static extern int styleObj_refcount_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_color_set")]
  public static extern void styleObj_color_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_color_get")]
  public static extern IntPtr styleObj_color_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_backgroundcolor_set")]
  public static extern void styleObj_backgroundcolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_backgroundcolor_get")]
  public static extern IntPtr styleObj_backgroundcolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_outlinecolor_set")]
  public static extern void styleObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_outlinecolor_get")]
  public static extern IntPtr styleObj_outlinecolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_opacity_set")]
  public static extern void styleObj_opacity_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_opacity_get")]
  public static extern int styleObj_opacity_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_mincolor_set")]
  public static extern void styleObj_mincolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_mincolor_get")]
  public static extern IntPtr styleObj_mincolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxcolor_set")]
  public static extern void styleObj_maxcolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxcolor_get")]
  public static extern IntPtr styleObj_maxcolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minvalue_set")]
  public static extern void styleObj_minvalue_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minvalue_get")]
  public static extern double styleObj_minvalue_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxvalue_set")]
  public static extern void styleObj_maxvalue_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxvalue_get")]
  public static extern double styleObj_maxvalue_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_rangeitem_set")]
  public static extern void styleObj_rangeitem_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_rangeitem_get")]
  public static extern string styleObj_rangeitem_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_rangeitemindex_set")]
  public static extern void styleObj_rangeitemindex_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_rangeitemindex_get")]
  public static extern int styleObj_rangeitemindex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_symbol_set")]
  public static extern void styleObj_symbol_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_symbol_get")]
  public static extern int styleObj_symbol_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_symbolname_set")]
  public static extern void styleObj_symbolname_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_symbolname_get")]
  public static extern string styleObj_symbolname_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_size_set")]
  public static extern void styleObj_size_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_size_get")]
  public static extern int styleObj_size_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minsize_set")]
  public static extern void styleObj_minsize_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minsize_get")]
  public static extern int styleObj_minsize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxsize_set")]
  public static extern void styleObj_maxsize_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxsize_get")]
  public static extern int styleObj_maxsize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_width_set")]
  public static extern void styleObj_width_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_width_get")]
  public static extern int styleObj_width_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minwidth_set")]
  public static extern void styleObj_minwidth_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minwidth_get")]
  public static extern int styleObj_minwidth_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxwidth_set")]
  public static extern void styleObj_maxwidth_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxwidth_get")]
  public static extern int styleObj_maxwidth_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_offsetx_set")]
  public static extern void styleObj_offsetx_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_offsetx_get")]
  public static extern int styleObj_offsetx_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_offsety_set")]
  public static extern void styleObj_offsety_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_offsety_get")]
  public static extern int styleObj_offsety_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_angle_set")]
  public static extern void styleObj_angle_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_angle_get")]
  public static extern double styleObj_angle_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_antialias_set")]
  public static extern void styleObj_antialias_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_antialias_get")]
  public static extern int styleObj_antialias_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_styleObj")]
  public static extern IntPtr new_styleObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_delete_styleObj")]
  public static extern void delete_styleObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_updateFromString")]
  public static extern int styleObj_updateFromString(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_clone")]
  public static extern IntPtr styleObj_clone(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_setSymbolByName")]
  public static extern int styleObj_setSymbolByName(HandleRef jarg1, HandleRef jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_removeBinding")]
  public static extern int styleObj_removeBinding(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_styleObj_setBinding")]
  public static extern int styleObj_setBinding(HandleRef jarg1, int jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_status_set")]
  public static extern void classObj_status_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_status_get")]
  public static extern int classObj_status_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_numstyles_set")]
  public static extern void classObj_numstyles_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_numstyles_get")]
  public static extern int classObj_numstyles_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_label_get")]
  public static extern IntPtr classObj_label_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_name_set")]
  public static extern void classObj_name_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_name_get")]
  public static extern string classObj_name_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_title_set")]
  public static extern void classObj_title_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_title_get")]
  public static extern string classObj_title_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_template_set")]
  public static extern void classObj_template_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_template_get")]
  public static extern string classObj_template_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_type_set")]
  public static extern void classObj_type_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_type_get")]
  public static extern int classObj_type_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_metadata_get")]
  public static extern IntPtr classObj_metadata_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_minscaledenom_set")]
  public static extern void classObj_minscaledenom_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_minscaledenom_get")]
  public static extern double classObj_minscaledenom_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_maxscaledenom_set")]
  public static extern void classObj_maxscaledenom_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_maxscaledenom_get")]
  public static extern double classObj_maxscaledenom_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_refcount_get")]
  public static extern int classObj_refcount_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_layer_get")]
  public static extern IntPtr classObj_layer_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_debug_set")]
  public static extern void classObj_debug_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_debug_get")]
  public static extern int classObj_debug_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_keyimage_set")]
  public static extern void classObj_keyimage_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_keyimage_get")]
  public static extern string classObj_keyimage_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_classObj")]
  public static extern IntPtr new_classObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_delete_classObj")]
  public static extern void delete_classObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_updateFromString")]
  public static extern int classObj_updateFromString(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_clone")]
  public static extern IntPtr classObj_clone(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_setExpression")]
  public static extern int classObj_setExpression(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_getExpressionString")]
  public static extern string classObj_getExpressionString(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_setText")]
  public static extern int classObj_setText(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_getTextString")]
  public static extern string classObj_getTextString(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_getMetaData")]
  public static extern string classObj_getMetaData(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_setMetaData")]
  public static extern int classObj_setMetaData(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_getFirstMetaDataKey")]
  public static extern string classObj_getFirstMetaDataKey(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_getNextMetaDataKey")]
  public static extern string classObj_getNextMetaDataKey(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_drawLegendIcon")]
  public static extern int classObj_drawLegendIcon(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4, int jarg5, HandleRef jarg6, int jarg7, int jarg8);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_createLegendIcon")]
  public static extern IntPtr classObj_createLegendIcon(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4, int jarg5);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_getStyle")]
  public static extern IntPtr classObj_getStyle(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_insertStyle")]
  public static extern int classObj_insertStyle(HandleRef jarg1, HandleRef jarg2, int jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_removeStyle")]
  public static extern IntPtr classObj_removeStyle(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_moveStyleUp")]
  public static extern int classObj_moveStyleUp(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_classObj_moveStyleDown")]
  public static extern int classObj_moveStyleDown(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_text_get")]
  public static extern string labelCacheMemberObj_text_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_featuresize_get")]
  public static extern double labelCacheMemberObj_featuresize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_styles_get")]
  public static extern IntPtr labelCacheMemberObj_styles_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_numstyles_get")]
  public static extern int labelCacheMemberObj_numstyles_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_label_get")]
  public static extern IntPtr labelCacheMemberObj_label_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_layerindex_get")]
  public static extern int labelCacheMemberObj_layerindex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_classindex_get")]
  public static extern int labelCacheMemberObj_classindex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_tileindex_get")]
  public static extern int labelCacheMemberObj_tileindex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_shapeindex_get")]
  public static extern int labelCacheMemberObj_shapeindex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_point_get")]
  public static extern IntPtr labelCacheMemberObj_point_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_poly_get")]
  public static extern IntPtr labelCacheMemberObj_poly_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_status_get")]
  public static extern int labelCacheMemberObj_status_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_labelpath_get")]
  public static extern IntPtr labelCacheMemberObj_labelpath_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_labelCacheMemberObj")]
  public static extern IntPtr new_labelCacheMemberObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_labelCacheMemberObj")]
  public static extern void delete_labelCacheMemberObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_markerCacheMemberObj_id_get")]
  public static extern int markerCacheMemberObj_id_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_markerCacheMemberObj_poly_get")]
  public static extern IntPtr markerCacheMemberObj_poly_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_markerCacheMemberObj")]
  public static extern IntPtr new_markerCacheMemberObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_markerCacheMemberObj")]
  public static extern void delete_markerCacheMemberObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_labels_get")]
  public static extern IntPtr labelCacheSlotObj_labels_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_numlabels_get")]
  public static extern int labelCacheSlotObj_numlabels_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_cachesize_get")]
  public static extern int labelCacheSlotObj_cachesize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_markers_get")]
  public static extern IntPtr labelCacheSlotObj_markers_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_nummarkers_get")]
  public static extern int labelCacheSlotObj_nummarkers_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_markercachesize_get")]
  public static extern int labelCacheSlotObj_markercachesize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_labelCacheSlotObj")]
  public static extern IntPtr new_labelCacheSlotObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_labelCacheSlotObj")]
  public static extern void delete_labelCacheSlotObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheObj_slots_get")]
  public static extern IntPtr labelCacheObj_slots_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheObj_numlabels_get")]
  public static extern int labelCacheObj_numlabels_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_labelCacheObj_freeCache")]
  public static extern void labelCacheObj_freeCache(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_labelCacheObj")]
  public static extern IntPtr new_labelCacheObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_labelCacheObj")]
  public static extern void delete_labelCacheObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_resultCacheMemberObj_shapeindex_get")]
  public static extern int resultCacheMemberObj_shapeindex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_resultCacheMemberObj_tileindex_get")]
  public static extern int resultCacheMemberObj_tileindex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_resultCacheMemberObj_classindex_get")]
  public static extern int resultCacheMemberObj_classindex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_resultCacheMemberObj")]
  public static extern IntPtr new_resultCacheMemberObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_resultCacheMemberObj")]
  public static extern void delete_resultCacheMemberObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_resultCacheObj_numresults_get")]
  public static extern int resultCacheObj_numresults_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_resultCacheObj_bounds_get")]
  public static extern IntPtr resultCacheObj_bounds_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_resultCacheObj_getResult")]
  public static extern IntPtr resultCacheObj_getResult(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_new_resultCacheObj")]
  public static extern IntPtr new_resultCacheObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_resultCacheObj")]
  public static extern void delete_resultCacheObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_filename_set")]
  public static extern void symbolSetObj_filename_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_filename_get")]
  public static extern string symbolSetObj_filename_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_imagecachesize_set")]
  public static extern void symbolSetObj_imagecachesize_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_imagecachesize_get")]
  public static extern int symbolSetObj_imagecachesize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_numsymbols_get")]
  public static extern int symbolSetObj_numsymbols_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_maxsymbols_get")]
  public static extern int symbolSetObj_maxsymbols_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_symbolSetObj")]
  public static extern IntPtr new_symbolSetObj(string jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_delete_symbolSetObj")]
  public static extern void delete_symbolSetObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_getSymbol")]
  public static extern IntPtr symbolSetObj_getSymbol(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_getSymbolByName")]
  public static extern IntPtr symbolSetObj_getSymbolByName(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_index")]
  public static extern int symbolSetObj_index(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_appendSymbol")]
  public static extern int symbolSetObj_appendSymbol(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_removeSymbol")]
  public static extern IntPtr symbolSetObj_removeSymbol(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_save")]
  public static extern int symbolSetObj_save(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_extent_set")]
  public static extern void referenceMapObj_extent_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_extent_get")]
  public static extern IntPtr referenceMapObj_extent_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_height_set")]
  public static extern void referenceMapObj_height_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_height_get")]
  public static extern int referenceMapObj_height_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_width_set")]
  public static extern void referenceMapObj_width_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_width_get")]
  public static extern int referenceMapObj_width_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_color_set")]
  public static extern void referenceMapObj_color_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_color_get")]
  public static extern IntPtr referenceMapObj_color_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_outlinecolor_set")]
  public static extern void referenceMapObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_outlinecolor_get")]
  public static extern IntPtr referenceMapObj_outlinecolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_image_set")]
  public static extern void referenceMapObj_image_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_image_get")]
  public static extern string referenceMapObj_image_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_status_set")]
  public static extern void referenceMapObj_status_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_status_get")]
  public static extern int referenceMapObj_status_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_marker_set")]
  public static extern void referenceMapObj_marker_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_marker_get")]
  public static extern int referenceMapObj_marker_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_markername_set")]
  public static extern void referenceMapObj_markername_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_markername_get")]
  public static extern string referenceMapObj_markername_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_markersize_set")]
  public static extern void referenceMapObj_markersize_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_markersize_get")]
  public static extern int referenceMapObj_markersize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_minboxsize_set")]
  public static extern void referenceMapObj_minboxsize_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_minboxsize_get")]
  public static extern int referenceMapObj_minboxsize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_maxboxsize_set")]
  public static extern void referenceMapObj_maxboxsize_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_maxboxsize_get")]
  public static extern int referenceMapObj_maxboxsize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_map_get")]
  public static extern IntPtr referenceMapObj_map_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_updateFromString")]
  public static extern int referenceMapObj_updateFromString(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_new_referenceMapObj")]
  public static extern IntPtr new_referenceMapObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_referenceMapObj")]
  public static extern void delete_referenceMapObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_imagecolor_set")]
  public static extern void scalebarObj_imagecolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_imagecolor_get")]
  public static extern IntPtr scalebarObj_imagecolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_height_set")]
  public static extern void scalebarObj_height_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_height_get")]
  public static extern int scalebarObj_height_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_width_set")]
  public static extern void scalebarObj_width_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_width_get")]
  public static extern int scalebarObj_width_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_style_set")]
  public static extern void scalebarObj_style_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_style_get")]
  public static extern int scalebarObj_style_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_intervals_set")]
  public static extern void scalebarObj_intervals_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_intervals_get")]
  public static extern int scalebarObj_intervals_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_label_set")]
  public static extern void scalebarObj_label_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_label_get")]
  public static extern IntPtr scalebarObj_label_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_color_set")]
  public static extern void scalebarObj_color_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_color_get")]
  public static extern IntPtr scalebarObj_color_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_backgroundcolor_set")]
  public static extern void scalebarObj_backgroundcolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_backgroundcolor_get")]
  public static extern IntPtr scalebarObj_backgroundcolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_outlinecolor_set")]
  public static extern void scalebarObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_outlinecolor_get")]
  public static extern IntPtr scalebarObj_outlinecolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_units_set")]
  public static extern void scalebarObj_units_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_units_get")]
  public static extern int scalebarObj_units_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_status_set")]
  public static extern void scalebarObj_status_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_status_get")]
  public static extern int scalebarObj_status_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_position_set")]
  public static extern void scalebarObj_position_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_position_get")]
  public static extern int scalebarObj_position_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_postlabelcache_set")]
  public static extern void scalebarObj_postlabelcache_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_postlabelcache_get")]
  public static extern int scalebarObj_postlabelcache_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_updateFromString")]
  public static extern int scalebarObj_updateFromString(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_new_scalebarObj")]
  public static extern IntPtr new_scalebarObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_scalebarObj")]
  public static extern void delete_scalebarObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_imagecolor_set")]
  public static extern void legendObj_imagecolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_imagecolor_get")]
  public static extern IntPtr legendObj_imagecolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_label_get")]
  public static extern IntPtr legendObj_label_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keysizex_set")]
  public static extern void legendObj_keysizex_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keysizex_get")]
  public static extern int legendObj_keysizex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keysizey_set")]
  public static extern void legendObj_keysizey_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keysizey_get")]
  public static extern int legendObj_keysizey_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keyspacingx_set")]
  public static extern void legendObj_keyspacingx_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keyspacingx_get")]
  public static extern int legendObj_keyspacingx_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keyspacingy_set")]
  public static extern void legendObj_keyspacingy_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keyspacingy_get")]
  public static extern int legendObj_keyspacingy_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_outlinecolor_set")]
  public static extern void legendObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_outlinecolor_get")]
  public static extern IntPtr legendObj_outlinecolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_status_set")]
  public static extern void legendObj_status_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_status_get")]
  public static extern int legendObj_status_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_height_set")]
  public static extern void legendObj_height_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_height_get")]
  public static extern int legendObj_height_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_width_set")]
  public static extern void legendObj_width_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_width_get")]
  public static extern int legendObj_width_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_position_set")]
  public static extern void legendObj_position_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_position_get")]
  public static extern int legendObj_position_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_postlabelcache_set")]
  public static extern void legendObj_postlabelcache_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_postlabelcache_get")]
  public static extern int legendObj_postlabelcache_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_template_set")]
  public static extern void legendObj_template_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_template_get")]
  public static extern string legendObj_template_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_map_get")]
  public static extern IntPtr legendObj_map_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_legendObj_updateFromString")]
  public static extern int legendObj_updateFromString(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_new_legendObj")]
  public static extern IntPtr new_legendObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_legendObj")]
  public static extern void delete_legendObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_classitem_set")]
  public static extern void layerObj_classitem_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_classitem_get")]
  public static extern string layerObj_classitem_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_refcount_get")]
  public static extern int layerObj_refcount_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_numclasses_get")]
  public static extern int layerObj_numclasses_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxclasses_get")]
  public static extern int layerObj_maxclasses_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_index_get")]
  public static extern int layerObj_index_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_map_get")]
  public static extern IntPtr layerObj_map_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_header_set")]
  public static extern void layerObj_header_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_header_get")]
  public static extern string layerObj_header_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_footer_set")]
  public static extern void layerObj_footer_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_footer_get")]
  public static extern string layerObj_footer_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_template_set")]
  public static extern void layerObj_template_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_template_get")]
  public static extern string layerObj_template_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_name_set")]
  public static extern void layerObj_name_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_name_get")]
  public static extern string layerObj_name_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_group_set")]
  public static extern void layerObj_group_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_group_get")]
  public static extern string layerObj_group_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_status_set")]
  public static extern void layerObj_status_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_status_get")]
  public static extern int layerObj_status_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_data_set")]
  public static extern void layerObj_data_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_data_get")]
  public static extern string layerObj_data_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_type_set")]
  public static extern void layerObj_type_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_type_get")]
  public static extern int layerObj_type_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tolerance_set")]
  public static extern void layerObj_tolerance_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tolerance_get")]
  public static extern double layerObj_tolerance_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_toleranceunits_set")]
  public static extern void layerObj_toleranceunits_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_toleranceunits_get")]
  public static extern int layerObj_toleranceunits_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_symbolscaledenom_set")]
  public static extern void layerObj_symbolscaledenom_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_symbolscaledenom_get")]
  public static extern double layerObj_symbolscaledenom_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_minscaledenom_set")]
  public static extern void layerObj_minscaledenom_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_minscaledenom_get")]
  public static extern double layerObj_minscaledenom_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxscaledenom_set")]
  public static extern void layerObj_maxscaledenom_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxscaledenom_get")]
  public static extern double layerObj_maxscaledenom_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelminscaledenom_set")]
  public static extern void layerObj_labelminscaledenom_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelminscaledenom_get")]
  public static extern double layerObj_labelminscaledenom_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelmaxscaledenom_set")]
  public static extern void layerObj_labelmaxscaledenom_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelmaxscaledenom_get")]
  public static extern double layerObj_labelmaxscaledenom_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_sizeunits_set")]
  public static extern void layerObj_sizeunits_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_sizeunits_get")]
  public static extern int layerObj_sizeunits_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxfeatures_set")]
  public static extern void layerObj_maxfeatures_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxfeatures_get")]
  public static extern int layerObj_maxfeatures_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_offsite_set")]
  public static extern void layerObj_offsite_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_offsite_get")]
  public static extern IntPtr layerObj_offsite_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_transform_set")]
  public static extern void layerObj_transform_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_transform_get")]
  public static extern int layerObj_transform_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelcache_set")]
  public static extern void layerObj_labelcache_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelcache_get")]
  public static extern int layerObj_labelcache_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_postlabelcache_set")]
  public static extern void layerObj_postlabelcache_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_postlabelcache_get")]
  public static extern int layerObj_postlabelcache_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelitem_set")]
  public static extern void layerObj_labelitem_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelitem_get")]
  public static extern string layerObj_labelitem_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tileitem_set")]
  public static extern void layerObj_tileitem_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tileitem_get")]
  public static extern string layerObj_tileitem_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tileindex_set")]
  public static extern void layerObj_tileindex_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tileindex_get")]
  public static extern string layerObj_tileindex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_units_set")]
  public static extern void layerObj_units_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_units_get")]
  public static extern int layerObj_units_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_connection_set")]
  public static extern void layerObj_connection_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_connection_get")]
  public static extern string layerObj_connection_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_plugin_library_set")]
  public static extern void layerObj_plugin_library_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_plugin_library_get")]
  public static extern string layerObj_plugin_library_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_plugin_library_original_set")]
  public static extern void layerObj_plugin_library_original_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_plugin_library_original_get")]
  public static extern string layerObj_plugin_library_original_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_connectiontype_set")]
  public static extern void layerObj_connectiontype_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_connectiontype_get")]
  public static extern int layerObj_connectiontype_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_numitems_get")]
  public static extern int layerObj_numitems_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_bandsitem_set")]
  public static extern void layerObj_bandsitem_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_bandsitem_get")]
  public static extern string layerObj_bandsitem_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_filteritem_set")]
  public static extern void layerObj_filteritem_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_filteritem_get")]
  public static extern string layerObj_filteritem_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_styleitem_set")]
  public static extern void layerObj_styleitem_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_styleitem_get")]
  public static extern string layerObj_styleitem_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_requires_set")]
  public static extern void layerObj_requires_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_requires_get")]
  public static extern string layerObj_requires_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelrequires_set")]
  public static extern void layerObj_labelrequires_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelrequires_get")]
  public static extern string layerObj_labelrequires_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_metadata_get")]
  public static extern IntPtr layerObj_metadata_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_opacity_set")]
  public static extern void layerObj_opacity_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_opacity_get")]
  public static extern int layerObj_opacity_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_dump_set")]
  public static extern void layerObj_dump_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_dump_get")]
  public static extern int layerObj_dump_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_debug_set")]
  public static extern void layerObj_debug_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_debug_get")]
  public static extern int layerObj_debug_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_extent_get")]
  public static extern IntPtr layerObj_extent_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_numprocessing_get")]
  public static extern int layerObj_numprocessing_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_numjoins_get")]
  public static extern int layerObj_numjoins_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_layerObj")]
  public static extern IntPtr new_layerObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_delete_layerObj")]
  public static extern void delete_layerObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_clone")]
  public static extern IntPtr layerObj_clone(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_updateFromString")]
  public static extern int layerObj_updateFromString(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_insertClass")]
  public static extern int layerObj_insertClass(HandleRef jarg1, HandleRef jarg2, int jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_removeClass")]
  public static extern IntPtr layerObj_removeClass(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_open")]
  public static extern int layerObj_open(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_whichShapes")]
  public static extern int layerObj_whichShapes(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_nextShape")]
  public static extern IntPtr layerObj_nextShape(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_close")]
  public static extern void layerObj_close(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getFeature")]
  public static extern IntPtr layerObj_getFeature(HandleRef jarg1, int jarg2, int jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getShape")]
  public static extern int layerObj_getShape(HandleRef jarg1, HandleRef jarg2, int jarg3, int jarg4);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getNumResults")]
  public static extern int layerObj_getNumResults(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getResult")]
  public static extern IntPtr layerObj_getResult(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getClass")]
  public static extern IntPtr layerObj_getClass(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getItem")]
  public static extern string layerObj_getItem(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_draw")]
  public static extern int layerObj_draw(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_drawQuery")]
  public static extern int layerObj_drawQuery(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByAttributes")]
  public static extern int layerObj_queryByAttributes(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByPoint")]
  public static extern int layerObj_queryByPoint(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4, double jarg5);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByRect")]
  public static extern int layerObj_queryByRect(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByFeatures")]
  public static extern int layerObj_queryByFeatures(HandleRef jarg1, HandleRef jarg2, int jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByShape")]
  public static extern int layerObj_queryByShape(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByIndex")]
  public static extern int layerObj_queryByIndex(HandleRef jarg1, HandleRef jarg2, int jarg3, int jarg4, int jarg5);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getResults")]
  public static extern IntPtr layerObj_getResults(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setFilter")]
  public static extern int layerObj_setFilter(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getFilterString")]
  public static extern string layerObj_getFilterString(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setWKTProjection")]
  public static extern int layerObj_setWKTProjection(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getProjection")]
  public static extern string layerObj_getProjection(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setProjection")]
  public static extern int layerObj_setProjection(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_addFeature")]
  public static extern int layerObj_addFeature(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getNumFeatures")]
  public static extern int layerObj_getNumFeatures(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getExtent")]
  public static extern IntPtr layerObj_getExtent(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setExtent")]
  public static extern int layerObj_setExtent(HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getMetaData")]
  public static extern string layerObj_getMetaData(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setMetaData")]
  public static extern int layerObj_setMetaData(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_removeMetaData")]
  public static extern int layerObj_removeMetaData(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getFirstMetaDataKey")]
  public static extern string layerObj_getFirstMetaDataKey(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getNextMetaDataKey")]
  public static extern string layerObj_getNextMetaDataKey(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getWMSFeatureInfoURL")]
  public static extern string layerObj_getWMSFeatureInfoURL(HandleRef jarg1, HandleRef jarg2, int jarg3, int jarg4, int jarg5, string jarg6);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_executeWFSGetFeature")]
  public static extern string layerObj_executeWFSGetFeature(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_applySLD")]
  public static extern int layerObj_applySLD(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_applySLDURL")]
  public static extern int layerObj_applySLDURL(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_generateSLD")]
  public static extern string layerObj_generateSLD(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_isVisible")]
  public static extern int layerObj_isVisible(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_moveClassUp")]
  public static extern int layerObj_moveClassUp(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_moveClassDown")]
  public static extern int layerObj_moveClassDown(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setProcessingKey")]
  public static extern void layerObj_setProcessingKey(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setProcessing")]
  public static extern void layerObj_setProcessing(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_addProcessing")]
  public static extern void layerObj_addProcessing(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getProcessing")]
  public static extern string layerObj_getProcessing(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getProcessingKey")]
  public static extern string layerObj_getProcessingKey(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_layerObj_clearProcessing")]
  public static extern int layerObj_clearProcessing(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_name_set")]
  public static extern void mapObj_name_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_name_get")]
  public static extern string mapObj_name_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_status_set")]
  public static extern void mapObj_status_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_status_get")]
  public static extern int mapObj_status_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_height_set")]
  public static extern void mapObj_height_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_height_get")]
  public static extern int mapObj_height_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_width_set")]
  public static extern void mapObj_width_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_width_get")]
  public static extern int mapObj_width_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_maxsize_set")]
  public static extern void mapObj_maxsize_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_maxsize_get")]
  public static extern int mapObj_maxsize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_refcount_get")]
  public static extern int mapObj_refcount_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_numlayers_get")]
  public static extern int mapObj_numlayers_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_maxlayers_get")]
  public static extern int mapObj_maxlayers_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_symbolset_get")]
  public static extern IntPtr mapObj_symbolset_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_fontset_get")]
  public static extern IntPtr mapObj_fontset_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_labelcache_get")]
  public static extern IntPtr mapObj_labelcache_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_transparent_set")]
  public static extern void mapObj_transparent_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_transparent_get")]
  public static extern int mapObj_transparent_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_interlace_set")]
  public static extern void mapObj_interlace_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_interlace_get")]
  public static extern int mapObj_interlace_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_imagequality_set")]
  public static extern void mapObj_imagequality_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_imagequality_get")]
  public static extern int mapObj_imagequality_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_extent_set")]
  public static extern void mapObj_extent_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_extent_get")]
  public static extern IntPtr mapObj_extent_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_cellsize_set")]
  public static extern void mapObj_cellsize_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_cellsize_get")]
  public static extern double mapObj_cellsize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_saved_extent_set")]
  public static extern void mapObj_saved_extent_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_saved_extent_get")]
  public static extern IntPtr mapObj_saved_extent_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_units_set")]
  public static extern void mapObj_units_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_units_get")]
  public static extern int mapObj_units_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_scaledenom_set")]
  public static extern void mapObj_scaledenom_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_scaledenom_get")]
  public static extern double mapObj_scaledenom_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_resolution_set")]
  public static extern void mapObj_resolution_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_resolution_get")]
  public static extern double mapObj_resolution_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_shapepath_set")]
  public static extern void mapObj_shapepath_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_shapepath_get")]
  public static extern string mapObj_shapepath_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_mappath_set")]
  public static extern void mapObj_mappath_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_mappath_get")]
  public static extern string mapObj_mappath_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_imagecolor_set")]
  public static extern void mapObj_imagecolor_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_imagecolor_get")]
  public static extern IntPtr mapObj_imagecolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_numoutputformats_get")]
  public static extern int mapObj_numoutputformats_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_outputformatlist_get")]
  public static extern IntPtr mapObj_outputformatlist_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_outputformat_get")]
  public static extern IntPtr mapObj_outputformat_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_imagetype_get")]
  public static extern string mapObj_imagetype_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_reference_get")]
  public static extern IntPtr mapObj_reference_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_scalebar_get")]
  public static extern IntPtr mapObj_scalebar_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_legend_get")]
  public static extern IntPtr mapObj_legend_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_querymap_get")]
  public static extern IntPtr mapObj_querymap_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_web_get")]
  public static extern IntPtr mapObj_web_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_layerorder_set")]
  public static extern void mapObj_layerorder_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_layerorder_get")]
  public static extern IntPtr mapObj_layerorder_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_debug_set")]
  public static extern void mapObj_debug_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_debug_get")]
  public static extern int mapObj_debug_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_datapattern_set")]
  public static extern void mapObj_datapattern_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_datapattern_get")]
  public static extern string mapObj_datapattern_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_templatepattern_set")]
  public static extern void mapObj_templatepattern_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_templatepattern_get")]
  public static extern string mapObj_templatepattern_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_configoptions_get")]
  public static extern IntPtr mapObj_configoptions_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_mapObj")]
  public static extern IntPtr new_mapObj(string jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_delete_mapObj")]
  public static extern void delete_mapObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_clone")]
  public static extern IntPtr mapObj_clone(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_insertLayer")]
  public static extern int mapObj_insertLayer(HandleRef jarg1, HandleRef jarg2, int jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_removeLayer")]
  public static extern IntPtr mapObj_removeLayer(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setExtent")]
  public static extern int mapObj_setExtent(HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setSize")]
  public static extern int mapObj_setSize(HandleRef jarg1, int jarg2, int jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setRotation")]
  public static extern int mapObj_setRotation(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getLayer")]
  public static extern IntPtr mapObj_getLayer(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getLayerByName")]
  public static extern IntPtr mapObj_getLayerByName(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getSymbolByName")]
  public static extern int mapObj_getSymbolByName(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_prepareQuery")]
  public static extern void mapObj_prepareQuery(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_prepareImage")]
  public static extern IntPtr mapObj_prepareImage(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setImageType")]
  public static extern void mapObj_setImageType(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_selectOutputFormat")]
  public static extern void mapObj_selectOutputFormat(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setOutputFormat")]
  public static extern void mapObj_setOutputFormat(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_draw")]
  public static extern IntPtr mapObj_draw(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_drawQuery")]
  public static extern IntPtr mapObj_drawQuery(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_drawLegend")]
  public static extern IntPtr mapObj_drawLegend(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_drawScalebar")]
  public static extern IntPtr mapObj_drawScalebar(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_drawReferenceMap")]
  public static extern IntPtr mapObj_drawReferenceMap(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_embedScalebar")]
  public static extern int mapObj_embedScalebar(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_embedLegend")]
  public static extern int mapObj_embedLegend(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_drawLabelCache")]
  public static extern int mapObj_drawLabelCache(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getLabel")]
  public static extern IntPtr mapObj_getLabel(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_nextLabel")]
  public static extern IntPtr mapObj_nextLabel(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_queryByPoint")]
  public static extern int mapObj_queryByPoint(HandleRef jarg1, HandleRef jarg2, int jarg3, double jarg4);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_queryByRect")]
  public static extern int mapObj_queryByRect(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_queryByFeatures")]
  public static extern int mapObj_queryByFeatures(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_queryByShape")]
  public static extern int mapObj_queryByShape(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setWKTProjection")]
  public static extern int mapObj_setWKTProjection(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getProjection")]
  public static extern string mapObj_getProjection(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setProjection")]
  public static extern int mapObj_setProjection(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_save")]
  public static extern int mapObj_save(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_saveQuery")]
  public static extern int mapObj_saveQuery(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_loadQuery")]
  public static extern int mapObj_loadQuery(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_freeQuery")]
  public static extern void mapObj_freeQuery(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_saveQueryAsGML")]
  public static extern int mapObj_saveQueryAsGML(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getMetaData")]
  public static extern string mapObj_getMetaData(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setMetaData")]
  public static extern int mapObj_setMetaData(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_removeMetaData")]
  public static extern int mapObj_removeMetaData(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getFirstMetaDataKey")]
  public static extern string mapObj_getFirstMetaDataKey(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getNextMetaDataKey")]
  public static extern string mapObj_getNextMetaDataKey(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setSymbolSet")]
  public static extern int mapObj_setSymbolSet(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getNumSymbols")]
  public static extern int mapObj_getNumSymbols(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setFontSet")]
  public static extern int mapObj_setFontSet(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_saveMapContext")]
  public static extern int mapObj_saveMapContext(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_loadMapContext")]
  public static extern int mapObj_loadMapContext(HandleRef jarg1, string jarg2, int jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_moveLayerUp")]
  public static extern int mapObj_moveLayerUp(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_moveLayerDown")]
  public static extern int mapObj_moveLayerDown(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getLayersDrawingOrder")]
  public static extern IntPtr mapObj_getLayersDrawingOrder(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setLayersDrawingOrder")]
  public static extern int mapObj_setLayersDrawingOrder(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setConfigOption")]
  public static extern void mapObj_setConfigOption(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getConfigOption")]
  public static extern string mapObj_getConfigOption(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_applyConfigOptions")]
  public static extern void mapObj_applyConfigOptions(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_applySLD")]
  public static extern int mapObj_applySLD(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_applySLDURL")]
  public static extern int mapObj_applySLDURL(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_generateSLD")]
  public static extern string mapObj_generateSLD(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_processTemplate")]
  public static extern string mapObj_processTemplate(HandleRef jarg1, int jarg2, IntPtr[] jarg3, IntPtr[] jarg4, int jarg5);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_processLegendTemplate")]
  public static extern string mapObj_processLegendTemplate(HandleRef jarg1, IntPtr[] jarg2, IntPtr[] jarg3, int jarg4);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_processQueryTemplate")]
  public static extern string mapObj_processQueryTemplate(HandleRef jarg1, IntPtr[] jarg2, IntPtr[] jarg3, int jarg4);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getOutputFormatByName")]
  public static extern IntPtr mapObj_getOutputFormatByName(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_appendOutputFormat")]
  public static extern int mapObj_appendOutputFormat(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_removeOutputFormat")]
  public static extern int mapObj_removeOutputFormat(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_loadOWSParameters")]
  public static extern int mapObj_loadOWSParameters(HandleRef jarg1, HandleRef jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_OWSDispatch")]
  public static extern int mapObj_OWSDispatch(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_zoomPoint")]
  public static extern int mapObj_zoomPoint(HandleRef jarg1, int jarg2, HandleRef jarg3, int jarg4, int jarg5, HandleRef jarg6, HandleRef jarg7);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_zoomRectangle")]
  public static extern int mapObj_zoomRectangle(HandleRef jarg1, HandleRef jarg2, int jarg3, int jarg4, HandleRef jarg5, HandleRef jarg6);

  [DllImport("mapscript", EntryPoint="CSharp_mapObj_zoomScale")]
  public static extern int mapObj_zoomScale(HandleRef jarg1, double jarg2, HandleRef jarg3, int jarg4, int jarg5, HandleRef jarg6, HandleRef jarg7);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_getBytes")]
  public static extern void imageObj_getBytes(HandleRef jarg1, SWIGByteArrayDelegate jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_width_get")]
  public static extern int imageObj_width_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_height_get")]
  public static extern int imageObj_height_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_imagepath_get")]
  public static extern string imageObj_imagepath_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_imageurl_get")]
  public static extern string imageObj_imageurl_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_format_get")]
  public static extern IntPtr imageObj_format_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_imageextra_get")]
  public static extern IntPtr imageObj_imageextra_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_renderer_set")]
  public static extern void imageObj_renderer_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_renderer_get")]
  public static extern int imageObj_renderer_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_size_set")]
  public static extern void imageObj_size_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_size_get")]
  public static extern int imageObj_size_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_imageObj")]
  public static extern IntPtr new_imageObj(int jarg1, int jarg2, HandleRef jarg3, string jarg4);

  [DllImport("mapscript", EntryPoint="CSharp_delete_imageObj")]
  public static extern void delete_imageObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_imageObj_save")]
  public static extern void imageObj_save(HandleRef jarg1, string jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_msSaveImage")]
  public static extern int msSaveImage(HandleRef jarg1, HandleRef jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_msFreeImage")]
  public static extern void msFreeImage(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_msSetup")]
  public static extern int msSetup();

  [DllImport("mapscript", EntryPoint="CSharp_msCleanup")]
  public static extern void msCleanup();

  [DllImport("mapscript", EntryPoint="CSharp_msLoadMapFromString")]
  public static extern IntPtr msLoadMapFromString(string jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_minx_set")]
  public static extern void rectObj_minx_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_minx_get")]
  public static extern double rectObj_minx_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_miny_set")]
  public static extern void rectObj_miny_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_miny_get")]
  public static extern double rectObj_miny_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_maxx_set")]
  public static extern void rectObj_maxx_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_maxx_get")]
  public static extern double rectObj_maxx_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_maxy_set")]
  public static extern void rectObj_maxy_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_maxy_get")]
  public static extern double rectObj_maxy_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_rectObj")]
  public static extern IntPtr new_rectObj(double jarg1, double jarg2, double jarg3, double jarg4, int jarg5);

  [DllImport("mapscript", EntryPoint="CSharp_delete_rectObj")]
  public static extern void delete_rectObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_project")]
  public static extern int rectObj_project(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_fit")]
  public static extern double rectObj_fit(HandleRef jarg1, int jarg2, int jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_draw")]
  public static extern int rectObj_draw(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, int jarg5, string jarg6);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_toPolygon")]
  public static extern IntPtr rectObj_toPolygon(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_rectObj_toString")]
  public static extern string rectObj_toString(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_x_set")]
  public static extern void pointObj_x_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_x_get")]
  public static extern double pointObj_x_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_y_set")]
  public static extern void pointObj_y_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_y_get")]
  public static extern double pointObj_y_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_pointObj")]
  public static extern IntPtr new_pointObj(double jarg1, double jarg2, double jarg3, double jarg4);

  [DllImport("mapscript", EntryPoint="CSharp_delete_pointObj")]
  public static extern void delete_pointObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_project")]
  public static extern int pointObj_project(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_draw")]
  public static extern int pointObj_draw(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, int jarg5, string jarg6);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_distanceToPoint")]
  public static extern double pointObj_distanceToPoint(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_distanceToSegment")]
  public static extern double pointObj_distanceToSegment(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_distanceToShape")]
  public static extern double pointObj_distanceToShape(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_setXY")]
  public static extern int pointObj_setXY(HandleRef jarg1, double jarg2, double jarg3, double jarg4);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_setXYZ")]
  public static extern int pointObj_setXYZ(HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_setXYZM")]
  public static extern int pointObj_setXYZM(HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_toString")]
  public static extern string pointObj_toString(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_pointObj_toShape")]
  public static extern IntPtr pointObj_toShape(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_lineObj_numpoints_get")]
  public static extern int lineObj_numpoints_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_lineObj_point_get")]
  public static extern IntPtr lineObj_point_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_lineObj")]
  public static extern IntPtr new_lineObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_lineObj")]
  public static extern void delete_lineObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_lineObj_project")]
  public static extern int lineObj_project(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_lineObj_get")]
  public static extern IntPtr lineObj_get(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_lineObj_add")]
  public static extern int lineObj_add(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_lineObj_set")]
  public static extern int lineObj_set(HandleRef jarg1, int jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_numlines_get")]
  public static extern int shapeObj_numlines_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_numvalues_get")]
  public static extern int shapeObj_numvalues_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_line_get")]
  public static extern IntPtr shapeObj_line_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_values_get")]
  public static extern IntPtr shapeObj_values_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_bounds_set")]
  public static extern void shapeObj_bounds_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_bounds_get")]
  public static extern IntPtr shapeObj_bounds_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_type_set")]
  public static extern void shapeObj_type_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_type_get")]
  public static extern int shapeObj_type_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_index_set")]
  public static extern void shapeObj_index_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_index_get")]
  public static extern int shapeObj_index_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_tileindex_set")]
  public static extern void shapeObj_tileindex_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_tileindex_get")]
  public static extern int shapeObj_tileindex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_classindex_set")]
  public static extern void shapeObj_classindex_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_classindex_get")]
  public static extern int shapeObj_classindex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_text_set")]
  public static extern void shapeObj_text_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_text_get")]
  public static extern string shapeObj_text_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_shapeObj")]
  public static extern IntPtr new_shapeObj(int jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_delete_shapeObj")]
  public static extern void delete_shapeObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_fromWKT")]
  public static extern IntPtr shapeObj_fromWKT(string jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_project")]
  public static extern int shapeObj_project(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_get")]
  public static extern IntPtr shapeObj_get(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_add")]
  public static extern int shapeObj_add(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_draw")]
  public static extern int shapeObj_draw(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_setBounds")]
  public static extern void shapeObj_setBounds(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_clone")]
  public static extern IntPtr shapeObj_clone(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_copy")]
  public static extern int shapeObj_copy(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_toWKT")]
  public static extern string shapeObj_toWKT(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_buffer")]
  public static extern IntPtr shapeObj_buffer(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_convexHull")]
  public static extern IntPtr shapeObj_convexHull(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_boundary")]
  public static extern IntPtr shapeObj_boundary(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_getCentroid")]
  public static extern IntPtr shapeObj_getCentroid(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_Union")]
  public static extern IntPtr shapeObj_Union(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_intersection")]
  public static extern IntPtr shapeObj_intersection(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_difference")]
  public static extern IntPtr shapeObj_difference(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_symDifference")]
  public static extern IntPtr shapeObj_symDifference(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_contains__SWIG_0")]
  public static extern int shapeObj_contains__SWIG_0(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_overlaps")]
  public static extern int shapeObj_overlaps(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_within")]
  public static extern int shapeObj_within(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_crosses")]
  public static extern int shapeObj_crosses(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_intersects")]
  public static extern int shapeObj_intersects(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_touches")]
  public static extern int shapeObj_touches(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_equals")]
  public static extern int shapeObj_equals(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_disjoint")]
  public static extern int shapeObj_disjoint(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_getArea")]
  public static extern double shapeObj_getArea(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_getLength")]
  public static extern double shapeObj_getLength(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_getValue")]
  public static extern string shapeObj_getValue(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_contains__SWIG_1")]
  public static extern int shapeObj_contains__SWIG_1(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_distanceToPoint")]
  public static extern double shapeObj_distanceToPoint(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_distanceToShape")]
  public static extern double shapeObj_distanceToShape(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_getLabelPoint")]
  public static extern IntPtr shapeObj_getLabelPoint(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_setValue")]
  public static extern int shapeObj_setValue(HandleRef jarg1, int jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_initValues")]
  public static extern void shapeObj_initValues(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHAPEFILE_POINT_get")]
  public static extern int MS_SHAPEFILE_POINT_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHAPEFILE_ARC_get")]
  public static extern int MS_SHAPEFILE_ARC_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHAPEFILE_POLYGON_get")]
  public static extern int MS_SHAPEFILE_POLYGON_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHAPEFILE_MULTIPOINT_get")]
  public static extern int MS_SHAPEFILE_MULTIPOINT_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_POINTZ_get")]
  public static extern int MS_SHP_POINTZ_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_ARCZ_get")]
  public static extern int MS_SHP_ARCZ_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_POLYGONZ_get")]
  public static extern int MS_SHP_POLYGONZ_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_MULTIPOINTZ_get")]
  public static extern int MS_SHP_MULTIPOINTZ_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_POINTM_get")]
  public static extern int MS_SHP_POINTM_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_ARCM_get")]
  public static extern int MS_SHP_ARCM_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_POLYGONM_get")]
  public static extern int MS_SHP_POLYGONM_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_MULTIPOINTM_get")]
  public static extern int MS_SHP_MULTIPOINTM_get();

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nRecords_get")]
  public static extern int DBFInfo_nRecords_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nRecordLength_get")]
  public static extern int DBFInfo_nRecordLength_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nHeaderLength_get")]
  public static extern int DBFInfo_nHeaderLength_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nFields_get")]
  public static extern int DBFInfo_nFields_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_panFieldOffset_get")]
  public static extern IntPtr DBFInfo_panFieldOffset_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_panFieldSize_get")]
  public static extern IntPtr DBFInfo_panFieldSize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_panFieldDecimals_get")]
  public static extern IntPtr DBFInfo_panFieldDecimals_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_pachFieldType_get")]
  public static extern string DBFInfo_pachFieldType_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_pszHeader_get")]
  public static extern string DBFInfo_pszHeader_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nCurrentRecord_get")]
  public static extern int DBFInfo_nCurrentRecord_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_bCurrentRecordModified_get")]
  public static extern int DBFInfo_bCurrentRecordModified_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_pszCurrentRecord_get")]
  public static extern string DBFInfo_pszCurrentRecord_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_bNoHeader_get")]
  public static extern int DBFInfo_bNoHeader_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_bUpdated_get")]
  public static extern int DBFInfo_bUpdated_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_pszStringField_get")]
  public static extern string DBFInfo_pszStringField_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nStringFieldLen_get")]
  public static extern int DBFInfo_nStringFieldLen_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_getFieldName")]
  public static extern string DBFInfo_getFieldName(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_getFieldWidth")]
  public static extern int DBFInfo_getFieldWidth(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_getFieldDecimals")]
  public static extern int DBFInfo_getFieldDecimals(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_getFieldType")]
  public static extern int DBFInfo_getFieldType(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_new_DBFInfo")]
  public static extern IntPtr new_DBFInfo();

  [DllImport("mapscript", EntryPoint="CSharp_delete_DBFInfo")]
  public static extern void delete_DBFInfo(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_source_get")]
  public static extern string shapefileObj_source_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_type_get")]
  public static extern int shapefileObj_type_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_numshapes_get")]
  public static extern int shapefileObj_numshapes_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_bounds_get")]
  public static extern IntPtr shapefileObj_bounds_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_lastshape_get")]
  public static extern int shapefileObj_lastshape_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_status_get")]
  public static extern string shapefileObj_status_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_statusbounds_get")]
  public static extern IntPtr shapefileObj_statusbounds_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_isopen_get")]
  public static extern int shapefileObj_isopen_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_shapefileObj")]
  public static extern IntPtr new_shapefileObj(string jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_delete_shapefileObj")]
  public static extern void delete_shapefileObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_get")]
  public static extern int shapefileObj_get(HandleRef jarg1, int jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_getShape")]
  public static extern IntPtr shapefileObj_getShape(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_getPoint")]
  public static extern int shapefileObj_getPoint(HandleRef jarg1, int jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_getTransformed")]
  public static extern int shapefileObj_getTransformed(HandleRef jarg1, HandleRef jarg2, int jarg3, HandleRef jarg4);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_getExtent")]
  public static extern void shapefileObj_getExtent(HandleRef jarg1, int jarg2, HandleRef jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_add")]
  public static extern int shapefileObj_add(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_addPoint")]
  public static extern int shapefileObj_addPoint(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_getDBF")]
  public static extern IntPtr shapefileObj_getDBF(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_projectionObj_numargs_get")]
  public static extern int projectionObj_numargs_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_projectionObj")]
  public static extern IntPtr new_projectionObj(string jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_delete_projectionObj")]
  public static extern void delete_projectionObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_projectionObj_setWKTProjection")]
  public static extern int projectionObj_setWKTProjection(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_MS_SYMBOL_ALLOCSIZE_get")]
  public static extern int MS_SYMBOL_ALLOCSIZE_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_MAXVECTORPOINTS_get")]
  public static extern int MS_MAXVECTORPOINTS_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_MAXPATTERNLENGTH_get")]
  public static extern int MS_MAXPATTERNLENGTH_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_IMAGECACHESIZE_get")]
  public static extern int MS_IMAGECACHESIZE_get();

  [DllImport("mapscript", EntryPoint="CSharp_colorObj_pen_set")]
  public static extern void colorObj_pen_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_colorObj_pen_get")]
  public static extern int colorObj_pen_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_colorObj_red_set")]
  public static extern void colorObj_red_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_colorObj_red_get")]
  public static extern int colorObj_red_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_colorObj_green_set")]
  public static extern void colorObj_green_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_colorObj_green_get")]
  public static extern int colorObj_green_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_colorObj_blue_set")]
  public static extern void colorObj_blue_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_colorObj_blue_get")]
  public static extern int colorObj_blue_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_colorObj")]
  public static extern IntPtr new_colorObj(int jarg1, int jarg2, int jarg3, int jarg4);

  [DllImport("mapscript", EntryPoint="CSharp_delete_colorObj")]
  public static extern void delete_colorObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_colorObj_setRGB")]
  public static extern int colorObj_setRGB(HandleRef jarg1, int jarg2, int jarg3, int jarg4);

  [DllImport("mapscript", EntryPoint="CSharp_colorObj_setHex")]
  public static extern int colorObj_setHex(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_colorObj_toHex")]
  public static extern string colorObj_toHex(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_name_set")]
  public static extern void symbolObj_name_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_name_get")]
  public static extern string symbolObj_name_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_type_set")]
  public static extern void symbolObj_type_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_type_get")]
  public static extern int symbolObj_type_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_sizex_set")]
  public static extern void symbolObj_sizex_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_sizex_get")]
  public static extern double symbolObj_sizex_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_sizey_set")]
  public static extern void symbolObj_sizey_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_sizey_get")]
  public static extern double symbolObj_sizey_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_refcount_get")]
  public static extern int symbolObj_refcount_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_numpoints_get")]
  public static extern int symbolObj_numpoints_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_filled_set")]
  public static extern void symbolObj_filled_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_filled_get")]
  public static extern int symbolObj_filled_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_patternlength_set")]
  public static extern void symbolObj_patternlength_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_patternlength_get")]
  public static extern int symbolObj_patternlength_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_pattern_set")]
  public static extern void symbolObj_pattern_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_pattern_get")]
  public static extern IntPtr symbolObj_pattern_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_imagepath_get")]
  public static extern string symbolObj_imagepath_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_transparent_set")]
  public static extern void symbolObj_transparent_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_transparent_get")]
  public static extern int symbolObj_transparent_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_transparentcolor_set")]
  public static extern void symbolObj_transparentcolor_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_transparentcolor_get")]
  public static extern int symbolObj_transparentcolor_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_character_set")]
  public static extern void symbolObj_character_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_character_get")]
  public static extern string symbolObj_character_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_antialias_set")]
  public static extern void symbolObj_antialias_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_antialias_get")]
  public static extern int symbolObj_antialias_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_font_set")]
  public static extern void symbolObj_font_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_font_get")]
  public static extern string symbolObj_font_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_gap_set")]
  public static extern void symbolObj_gap_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_gap_get")]
  public static extern int symbolObj_gap_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_position_set")]
  public static extern void symbolObj_position_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_position_get")]
  public static extern int symbolObj_position_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_linecap_set")]
  public static extern void symbolObj_linecap_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_linecap_get")]
  public static extern int symbolObj_linecap_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_linejoin_set")]
  public static extern void symbolObj_linejoin_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_linejoin_get")]
  public static extern int symbolObj_linejoin_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_linejoinmaxsize_set")]
  public static extern void symbolObj_linejoinmaxsize_set(HandleRef jarg1, double jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_linejoinmaxsize_get")]
  public static extern double symbolObj_linejoinmaxsize_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_symbolObj")]
  public static extern IntPtr new_symbolObj(string jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_delete_symbolObj")]
  public static extern void delete_symbolObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_setImagepath")]
  public static extern int symbolObj_setImagepath(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_setPoints")]
  public static extern int symbolObj_setPoints(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_getPoints")]
  public static extern IntPtr symbolObj_getPoints(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_setPattern")]
  public static extern int symbolObj_setPattern(HandleRef jarg1, int jarg2, int jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_getImage")]
  public static extern IntPtr symbolObj_getImage(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_setImage")]
  public static extern int symbolObj_setImage(HandleRef jarg1, HandleRef jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_MS_NOERR_get")]
  public static extern int MS_NOERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_IOERR_get")]
  public static extern int MS_IOERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_MEMERR_get")]
  public static extern int MS_MEMERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_TYPEERR_get")]
  public static extern int MS_TYPEERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SYMERR_get")]
  public static extern int MS_SYMERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_REGEXERR_get")]
  public static extern int MS_REGEXERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_TTFERR_get")]
  public static extern int MS_TTFERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_DBFERR_get")]
  public static extern int MS_DBFERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_GDERR_get")]
  public static extern int MS_GDERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_IDENTERR_get")]
  public static extern int MS_IDENTERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_EOFERR_get")]
  public static extern int MS_EOFERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_PROJERR_get")]
  public static extern int MS_PROJERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_MISCERR_get")]
  public static extern int MS_MISCERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_CGIERR_get")]
  public static extern int MS_CGIERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_WEBERR_get")]
  public static extern int MS_WEBERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_IMGERR_get")]
  public static extern int MS_IMGERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_HASHERR_get")]
  public static extern int MS_HASHERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_JOINERR_get")]
  public static extern int MS_JOINERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_NOTFOUND_get")]
  public static extern int MS_NOTFOUND_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SHPERR_get")]
  public static extern int MS_SHPERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_PARSEERR_get")]
  public static extern int MS_PARSEERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SDEERR_get")]
  public static extern int MS_SDEERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_OGRERR_get")]
  public static extern int MS_OGRERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_QUERYERR_get")]
  public static extern int MS_QUERYERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_WMSERR_get")]
  public static extern int MS_WMSERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_WMSCONNERR_get")]
  public static extern int MS_WMSCONNERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_ORACLESPATIALERR_get")]
  public static extern int MS_ORACLESPATIALERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_WFSERR_get")]
  public static extern int MS_WFSERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_WFSCONNERR_get")]
  public static extern int MS_WFSCONNERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_MAPCONTEXTERR_get")]
  public static extern int MS_MAPCONTEXTERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_HTTPERR_get")]
  public static extern int MS_HTTPERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_CHILDERR_get")]
  public static extern int MS_CHILDERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_WCSERR_get")]
  public static extern int MS_WCSERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_GEOSERR_get")]
  public static extern int MS_GEOSERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_RECTERR_get")]
  public static extern int MS_RECTERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_TIMEERR_get")]
  public static extern int MS_TIMEERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_GMLERR_get")]
  public static extern int MS_GMLERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_SOSERR_get")]
  public static extern int MS_SOSERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_NULLPARENTERR_get")]
  public static extern int MS_NULLPARENTERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_AGGERR_get")]
  public static extern int MS_AGGERR_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_NUMERRORCODES_get")]
  public static extern int MS_NUMERRORCODES_get();

  [DllImport("mapscript", EntryPoint="CSharp_MESSAGELENGTH_get")]
  public static extern int MESSAGELENGTH_get();

  [DllImport("mapscript", EntryPoint="CSharp_ROUTINELENGTH_get")]
  public static extern int ROUTINELENGTH_get();

  [DllImport("mapscript", EntryPoint="CSharp_MS_ERROR_LANGUAGE_get")]
  public static extern string MS_ERROR_LANGUAGE_get();

  [DllImport("mapscript", EntryPoint="CSharp_errorObj_code_set")]
  public static extern void errorObj_code_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_errorObj_code_get")]
  public static extern int errorObj_code_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_errorObj_routine_set")]
  public static extern void errorObj_routine_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_errorObj_routine_get")]
  public static extern string errorObj_routine_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_errorObj_message_set")]
  public static extern void errorObj_message_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_errorObj_message_get")]
  public static extern string errorObj_message_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_errorObj")]
  public static extern IntPtr new_errorObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_errorObj")]
  public static extern void delete_errorObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_errorObj_next")]
  public static extern IntPtr errorObj_next(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_msGetErrorObj")]
  public static extern IntPtr msGetErrorObj();

  [DllImport("mapscript", EntryPoint="CSharp_msResetErrorList")]
  public static extern void msResetErrorList();

  [DllImport("mapscript", EntryPoint="CSharp_msGetVersion")]
  public static extern string msGetVersion();

  [DllImport("mapscript", EntryPoint="CSharp_msGetVersionInt")]
  public static extern int msGetVersionInt();

  [DllImport("mapscript", EntryPoint="CSharp_msGetErrorString")]
  public static extern string msGetErrorString(string jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_MS_HASHSIZE_get")]
  public static extern int MS_HASHSIZE_get();

  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_numitems_get")]
  public static extern int hashTableObj_numitems_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_hashTableObj")]
  public static extern IntPtr new_hashTableObj();

  [DllImport("mapscript", EntryPoint="CSharp_delete_hashTableObj")]
  public static extern void delete_hashTableObj(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_set")]
  public static extern int hashTableObj_set(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_get")]
  public static extern string hashTableObj_get(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_remove")]
  public static extern int hashTableObj_remove(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_clear")]
  public static extern void hashTableObj_clear(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_nextKey")]
  public static extern string hashTableObj_nextKey(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_MS_MAX_CGI_PARAMS_get")]
  public static extern int MS_MAX_CGI_PARAMS_get();

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_NumParams_get")]
  public static extern int OWSRequest_NumParams_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_type_set")]
  public static extern void OWSRequest_type_set(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_type_get")]
  public static extern int OWSRequest_type_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_contenttype_set")]
  public static extern void OWSRequest_contenttype_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_contenttype_get")]
  public static extern string OWSRequest_contenttype_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_postrequest_set")]
  public static extern void OWSRequest_postrequest_set(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_postrequest_get")]
  public static extern string OWSRequest_postrequest_get(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_new_OWSRequest")]
  public static extern IntPtr new_OWSRequest();

  [DllImport("mapscript", EntryPoint="CSharp_delete_OWSRequest")]
  public static extern void delete_OWSRequest(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_loadParams")]
  public static extern int OWSRequest_loadParams(HandleRef jarg1);

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_setParameter")]
  public static extern void OWSRequest_setParameter(HandleRef jarg1, string jarg2, string jarg3);

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_getName")]
  public static extern string OWSRequest_getName(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_getValue")]
  public static extern string OWSRequest_getValue(HandleRef jarg1, int jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_getValueByName")]
  public static extern string OWSRequest_getValueByName(HandleRef jarg1, string jarg2);

  [DllImport("mapscript", EntryPoint="CSharp_msConnPoolCloseUnreferenced")]
  public static extern void msConnPoolCloseUnreferenced();

  [DllImport("mapscript", EntryPoint="CSharp_msIO_resetHandlers")]
  public static extern void msIO_resetHandlers();

  [DllImport("mapscript", EntryPoint="CSharp_msIO_installStdoutToBuffer")]
  public static extern void msIO_installStdoutToBuffer();

  [DllImport("mapscript", EntryPoint="CSharp_msIO_installStdinFromBuffer")]
  public static extern void msIO_installStdinFromBuffer();

  [DllImport("mapscript", EntryPoint="CSharp_msIO_stripStdoutBufferContentType")]
  public static extern string msIO_stripStdoutBufferContentType();

  [DllImport("mapscript", EntryPoint="CSharp_msIO_getStdoutBufferString")]
  public static extern string msIO_getStdoutBufferString();

  [DllImport("mapscript", EntryPoint="CSharp_msIO_getStdoutBufferBytes")]
  public static extern void msIO_getStdoutBufferBytes();
}