1 write to gen
System.Data.Linq (1)
SqlClient\Reader\ObjectReaderCompiler.cs (1)
686
this.
gen
= generator;
373 references to gen
System.Data.Linq (373)
SqlClient\Reader\ObjectReaderCompiler.cs (373)
781
gen
.Emit(OpCodes.Ldarg_0);
782
gen
.Emit(OpCodes.Ldfld, this.compiler.bufferReaderField);
786
gen
.Emit(OpCodes.Ldloc, this.locDataReader);
790
gen
.Emit(OpCodes.Ldarg_0);
791
gen
.Emit(OpCodes.Ldfld, this.compiler.ordinalsField);
795
gen
.Emit(OpCodes.Ldarg_0);
796
gen
.Emit(OpCodes.Ldfld, this.compiler.globalsField);
800
gen
.Emit(OpCodes.Ldarg_0);
801
gen
.Emit(OpCodes.Ldfld, this.compiler.argsField);
821
gen
.Emit(GetMethodCallOpCode(miInvoke), miInvoke);
828
LocalBuilder loc =
gen
.DeclareLocal(u.Operand.ClrType);
829
gen
.Emit(OpCodes.Stloc, loc);
830
gen
.Emit(OpCodes.Ldloca, loc);
838
Label labIsNull =
gen
.DefineLabel();
839
Label labExit =
gen
.DefineLabel();
843
LocalBuilder loc =
gen
.DeclareLocal(actualType);
844
gen
.Emit(OpCodes.Stloc, loc);
845
gen
.Emit(OpCodes.Ldloca, loc);
847
gen
.Emit(OpCodes.Brfalse, labIsNull);
850
gen
.Emit(OpCodes.Br_S, labExit);
852
gen
.MarkLabel(labIsNull);
855
gen
.MarkLabel(labExit);
869
gen
.Emit(OpCodes.Newarr, elemType);
871
gen
.Emit(OpCodes.Dup);
883
gen
.Emit(OpCodes.Ldfld, fi);
897
LocalBuilder loc =
gen
.DeclareLocal(actualType);
898
gen
.Emit(OpCodes.Stloc, loc);
899
gen
.Emit(OpCodes.Ldloca, loc);
908
LocalBuilder loc =
gen
.DeclareLocal(pType);
909
gen
.Emit(OpCodes.Stloc, loc);
910
gen
.Emit(OpCodes.Ldloca, loc);
918
gen
.Emit(OpCodes.Constrained, mc.Object.ClrType);
920
gen
.Emit(callOpCode, mc.Method);
933
LocalBuilder locInstance =
gen
.DeclareLocal(sn.ClrType);
935
Label labNewExit =
gen
.DefineLabel();
936
Label labAlreadyCached =
gen
.DefineLabel();
948
gen
.Emit(OpCodes.Newobj, sn.Constructor);
949
gen
.Emit(OpCodes.Stloc, locInstance);
952
gen
.Emit(OpCodes.Ldloca, locInstance);
953
gen
.Emit(OpCodes.Initobj, sn.ClrType);
957
gen
.Emit(OpCodes.Newobj, ci);
958
gen
.Emit(OpCodes.Stloc, locInstance);
972
LocalBuilder locCached =
gen
.DeclareLocal(sn.ClrType);
973
locStoreInMember =
gen
.DeclareLocal(typeof(bool));
974
Label labExit =
gen
.DefineLabel();
980
gen
.Emit(OpCodes.Ldarg_0);
982
gen
.Emit(OpCodes.Ldloc, locInstance);
992
gen
.Emit(GetMethodCallOpCode(miInsertLookup), miInsertLookup);
993
gen
.Emit(OpCodes.Castclass, sn.ClrType);
994
gen
.Emit(OpCodes.Stloc, locCached);
997
gen
.Emit(OpCodes.Ldloc, locCached);
998
gen
.Emit(OpCodes.Ldloc, locInstance);
999
gen
.Emit(OpCodes.Ceq);
1000
gen
.Emit(OpCodes.Brfalse, labAlreadyCached);
1003
gen
.Emit(OpCodes.Stloc, locStoreInMember);
1004
gen
.Emit(OpCodes.Br_S, labExit);
1006
gen
.MarkLabel(labAlreadyCached);
1007
gen
.Emit(OpCodes.Ldloc, locCached);
1008
gen
.Emit(OpCodes.Stloc, locInstance);
1011
gen
.Emit(OpCodes.Stloc, locStoreInMember);
1013
gen
.MarkLabel(labExit);
1026
gen
.Emit(OpCodes.Ldloc, locStoreInMember);
1028
gen
.Emit(OpCodes.Ceq);
1029
gen
.Emit(OpCodes.Brtrue, labNewExit);
1032
gen
.Emit(OpCodes.Ldarg_0);
1034
gen
.Emit(OpCodes.Ldloc, locInstance);
1044
gen
.Emit(GetMethodCallOpCode(miRaiseEvent), miRaiseEvent);
1047
gen
.MarkLabel(labNewExit);
1048
gen
.Emit(OpCodes.Ldloc, locInstance);
1065
gen
.Emit(OpCodes.Ldarg_0);
1070
gen
.Emit(GetMethodCallOpCode(miCanDeferLoad), miCanDeferLoad);
1073
Label labEndDeferLoad =
gen
.DefineLabel();
1074
gen
.Emit(OpCodes.Brfalse, labEndDeferLoad);
1092
gen
.MarkLabel(labEndDeferLoad);
1113
Label labExit =
gen
.DefineLabel();
1118
gen
.Emit(OpCodes.Ldloc, locStoreInMember);
1120
gen
.Emit(OpCodes.Ceq);
1121
gen
.Emit(OpCodes.Brtrue, labExit);
1125
LocalBuilder locValue =
gen
.DeclareLocal(memberType);
1127
gen
.Emit(OpCodes.Stloc, locValue);
1130
gen
.Emit(OpCodes.Ldloc, locStoreInMember);
1132
gen
.Emit(OpCodes.Ceq);
1133
gen
.Emit(OpCodes.Brtrue, labExit);
1137
gen
.Emit(OpCodes.Ldloc, locValue);
1140
gen
.MarkLabel(labExit);
1159
Label labExit =
gen
.DefineLabel();
1165
gen
.Emit(OpCodes.Ldloc, locStoreInMember);
1167
gen
.Emit(OpCodes.Ceq);
1168
gen
.Emit(OpCodes.Brtrue, labExit);
1173
LocalBuilder locSource =
gen
.DeclareLocal(eType);
1174
gen
.Emit(OpCodes.Stloc, locSource);
1177
gen
.Emit(OpCodes.Ldloc, locStoreInMember);
1179
gen
.Emit(OpCodes.Ceq);
1180
gen
.Emit(OpCodes.Brtrue, labExit);
1185
Label labFetch =
gen
.DefineLabel();
1188
gen
.Emit(OpCodes.Ldnull);
1189
gen
.Emit(OpCodes.Ceq);
1190
gen
.Emit(OpCodes.Brfalse, labFetch);
1196
gen
.Emit(OpCodes.Newobj, ci);
1199
gen
.MarkLabel(labFetch);
1205
gen
.Emit(OpCodes.Ldloc, locSource);
1208
gen
.Emit(GetMethodCallOpCode(miSetSource), miSetSource);
1210
gen
.MarkLabel(labExit);
1221
Label labExit =
gen
.DefineLabel();
1227
gen
.Emit(OpCodes.Ldloc, locStoreInMember);
1229
gen
.Emit(OpCodes.Ceq);
1230
gen
.Emit(OpCodes.Brtrue, labExit);
1235
LocalBuilder locSource =
gen
.DeclareLocal(eType);
1236
gen
.Emit(OpCodes.Stloc, locSource);
1239
gen
.Emit(OpCodes.Ldloc, locStoreInMember);
1241
gen
.Emit(OpCodes.Ceq);
1242
gen
.Emit(OpCodes.Brtrue, labExit);
1247
Label labFetch =
gen
.DefineLabel();
1250
gen
.Emit(OpCodes.Ldnull);
1251
gen
.Emit(OpCodes.Ceq);
1252
gen
.Emit(OpCodes.Brfalse, labFetch);
1258
gen
.Emit(OpCodes.Newobj, ci);
1261
gen
.MarkLabel(labFetch);
1267
gen
.Emit(OpCodes.Ldloc, locSource);
1270
gen
.Emit(GetMethodCallOpCode(miAssign), miAssign);
1272
gen
.MarkLabel(labExit);
1283
Label labExit =
gen
.DefineLabel();
1289
gen
.Emit(OpCodes.Ldloc, locStoreInMember);
1291
gen
.Emit(OpCodes.Ceq);
1292
gen
.Emit(OpCodes.Brtrue, labExit);
1300
LocalBuilder locSource =
gen
.DeclareLocal(eType);
1301
gen
.Emit(OpCodes.Stloc, locSource);
1304
gen
.Emit(OpCodes.Ldloc, locStoreInMember);
1306
gen
.Emit(OpCodes.Ceq);
1307
gen
.Emit(OpCodes.Brtrue, labExit);
1311
gen
.Emit(OpCodes.Ldloc, locSource);
1314
gen
.Emit(OpCodes.Newobj, ci);
1317
gen
.MarkLabel(labExit);
1322
gen
.Emit(OpCodes.Ldloca, loc);
1325
gen
.Emit(OpCodes.Ldloc, loc);
1354
gen
.Emit(OpCodes.Call, miCreateGroup);
1360
gen
.Emit(OpCodes.Ldarg_0);
1377
gen
.Emit(OpCodes.Ldloc, locInstance);
1383
gen
.Emit(GetMethodCallOpCode(miGLS), miGLS);
1388
gen
.Emit(OpCodes.Newarr, typeof(object));
1392
gen
.Emit(OpCodes.Dup);
1402
gen
.Emit(GetMethodCallOpCode(miGLS), miGLS);
1423
gen
.Emit(OpCodes.Ldarg_0); // ObjectReaderBase
1428
gen
.Emit(OpCodes.Newarr, typeof(object));
1432
gen
.Emit(OpCodes.Dup);
1446
gen
.Emit(OpCodes.Box, clrType);
1454
gen
.Emit(GetMethodCallOpCode(miExecute), miExecute);
1457
gen
.Emit(OpCodes.Castclass, actualType);
1466
LocalBuilder locCount =
gen
.DeclareLocal(typeof(int));
1467
LocalBuilder locHasRows =
gen
.DeclareLocal(typeof(bool));
1470
LocalBuilder locList =
gen
.DeclareLocal(listType);
1474
gen
.Emit(OpCodes.Stloc, locCount);
1477
gen
.Emit(OpCodes.Ldloc, locCount);
1480
gen
.Emit(OpCodes.Newobj, ci);
1481
gen
.Emit(OpCodes.Stloc, locList);
1484
gen
.Emit(OpCodes.Ldc_I4_1);
1485
gen
.Emit(OpCodes.Stloc, locHasRows);
1488
Label labLoopTest =
gen
.DefineLabel();
1489
Label labLoopTop =
gen
.DefineLabel();
1490
LocalBuilder locI =
gen
.DeclareLocal(typeof(int));
1491
gen
.Emit(OpCodes.Ldc_I4_0);
1492
gen
.Emit(OpCodes.Stloc, locI);
1493
gen
.Emit(OpCodes.Br, labLoopTest);
1495
gen
.MarkLabel(labLoopTop);
1499
gen
.Emit(OpCodes.Ldloc, locI);
1500
gen
.Emit(OpCodes.Ldc_I4_0);
1501
gen
.Emit(OpCodes.Cgt);
1502
gen
.Emit(OpCodes.Ldloc, locHasRows);
1503
gen
.Emit(OpCodes.And);
1504
Label labNext =
gen
.DefineLabel();
1505
gen
.Emit(OpCodes.Brfalse, labNext);
1508
gen
.Emit(OpCodes.Ldarg_0);
1512
gen
.Emit(GetMethodCallOpCode(miRead), miRead);
1513
gen
.Emit(OpCodes.Stloc, locHasRows);
1515
gen
.MarkLabel(labNext);
1517
Label labNext2 =
gen
.DefineLabel();
1518
gen
.Emit(OpCodes.Ldloc, locHasRows);
1519
gen
.Emit(OpCodes.Brfalse, labNext2);
1520
gen
.Emit(OpCodes.Ldloc, locList);
1524
gen
.Emit(GetMethodCallOpCode(miAdd), miAdd);
1526
gen
.MarkLabel(labNext2);
1529
gen
.Emit(OpCodes.Ldloc, locI);
1530
gen
.Emit(OpCodes.Ldc_I4_1);
1531
gen
.Emit(OpCodes.Add);
1532
gen
.Emit(OpCodes.Stloc, locI);
1536
gen
.MarkLabel(labLoopTest);
1537
gen
.Emit(OpCodes.Ldloc, locI);
1538
gen
.Emit(OpCodes.Ldloc, locCount);
1539
gen
.Emit(OpCodes.Clt);
1540
gen
.Emit(OpCodes.Ldloc, locHasRows);
1541
gen
.Emit(OpCodes.And);
1542
gen
.Emit(OpCodes.Brtrue, labLoopTop);
1545
gen
.Emit(OpCodes.Ldloc, locList);
1580
gen
.Emit(OpCodes.Box, actualType);
1583
gen
.Emit(OpCodes.Unbox_Any, expectedType);
1589
gen
.Emit(OpCodes.Castclass, expectedType);
1602
gen
.Emit(OpCodes.Call, miCast);
1609
gen
.Emit(OpCodes.Call, miConvert);
1617
gen
.Emit(OpCodes.Call, miFirst);
1624
gen
.Emit(OpCodes.Newobj, ci);
1630
LocalBuilder loc =
gen
.DeclareLocal(actualType);
1631
gen
.Emit(OpCodes.Stloc, loc);
1632
gen
.Emit(OpCodes.Ldloca, loc);
1647
gen
.Emit(OpCodes.Newobj, ci);
1653
gen
.Emit(OpCodes.Call, miFirst);
1656
gen
.Emit(OpCodes.Newobj, ci);
1669
gen
.Emit(OpCodes.Call, miAsQueryable);
1671
gen
.Emit(OpCodes.Castclass, expectedType);
1687
gen
.Emit(OpCodes.Call, miAsQueryable);
1689
gen
.Emit(OpCodes.Castclass, expectedType);
1703
gen
.Emit(OpCodes.Call, miCreateOrderedEnumerable);
1714
LocalBuilder locSeq =
gen
.DeclareLocal(actualType);
1715
gen
.Emit(OpCodes.Stloc, locSeq);
1719
gen
.Emit(OpCodes.Newobj, ci);
1720
LocalBuilder locEs =
gen
.DeclareLocal(expectedType);
1721
gen
.Emit(OpCodes.Stloc, locEs);
1723
gen
.Emit(OpCodes.Ldloc, locEs);
1724
gen
.Emit(OpCodes.Ldloc, locSeq);
1727
gen
.Emit(GetMethodCallOpCode(miAssign), miAssign);
1729
gen
.Emit(OpCodes.Ldloc, locEs);
1740
gen
.Emit(OpCodes.Newobj, ci);
1750
gen
.Emit(OpCodes.Call, miToArray);
1763
Label labZero =
gen
.DefineLabel();
1764
Label labExit =
gen
.DefineLabel();
1765
gen
.Emit(OpCodes.Ldc_I4_0);
1766
gen
.Emit(OpCodes.Ceq);
1767
gen
.Emit(OpCodes.Brtrue_S, labZero);
1768
gen
.Emit(OpCodes.Ldc_I4_1);
1769
gen
.Emit(OpCodes.Br_S, labExit);
1770
gen
.MarkLabel(labZero);
1771
gen
.Emit(OpCodes.Ldc_I4_0);
1772
gen
.MarkLabel(labExit);
1778
gen
.Emit(OpCodes.Box, actualType);
1780
gen
.Emit(OpCodes.Ldtoken, expectedType);
1783
gen
.Emit(OpCodes.Call, miGetTypeFromHandle);
1786
gen
.Emit(OpCodes.Call, miChangeType);
1788
gen
.Emit(OpCodes.Unbox_Any, expectedType);
1791
gen
.Emit(OpCodes.Castclass, expectedType);
1811
Label labNotDefined =
gen
.DefineLabel();
1812
Label labExit =
gen
.DefineLabel();
1813
LocalBuilder locOrdinal =
gen
.DeclareLocal(typeof(int));
1819
gen
.Emit(OpCodes.Stloc, locOrdinal);
1822
gen
.Emit(OpCodes.Ldloc, locOrdinal);
1824
gen
.Emit(OpCodes.Clt);
1825
gen
.Emit(OpCodes.Brtrue, labNotDefined);
1829
gen
.Emit(OpCodes.Br_S, labExit);
1832
gen
.MarkLabel(labNotDefined);
1835
gen
.MarkLabel(labExit);
1845
Label labIsNull =
gen
.DefineLabel();
1846
Label labExit =
gen
.DefineLabel();
1847
Label labReadFromBuffer =
gen
.DefineLabel();
1851
gen
.Emit(OpCodes.Ldnull);
1852
gen
.Emit(OpCodes.Ceq);
1853
gen
.Emit(OpCodes.Brfalse, labReadFromBuffer);
1859
gen
.Emit(OpCodes.Ldloc, locOrdinal);
1862
gen
.Emit(GetMethodCallOpCode(this.compiler.miDRisDBNull), this.compiler.miDRisDBNull);
1863
gen
.Emit(OpCodes.Brtrue, labIsNull);
1868
gen
.Emit(OpCodes.Ldloc, locOrdinal);
1871
gen
.Emit(GetMethodCallOpCode(readerMethod), readerMethod);
1873
gen
.Emit(OpCodes.Br_S, labExit);
1876
gen
.MarkLabel(labReadFromBuffer);
1881
gen
.Emit(OpCodes.Ldloc, locOrdinal);
1884
gen
.Emit(GetMethodCallOpCode(this.compiler.miBRisDBNull), this.compiler.miBRisDBNull);
1885
gen
.Emit(OpCodes.Brtrue, labIsNull);
1890
gen
.Emit(OpCodes.Ldloc, locOrdinal);
1893
gen
.Emit(GetMethodCallOpCode(bufferMethod), bufferMethod);
1895
gen
.Emit(OpCodes.Br_S, labExit);
1898
gen
.MarkLabel(labIsNull);
1901
gen
.MarkLabel(labExit);
1905
LocalBuilder locDiscriminator =
gen
.DeclareLocal(scc.Expression.ClrType);
1907
gen
.Emit(OpCodes.Stloc, locDiscriminator);
1909
Label labNext =
gen
.DefineLabel();
1910
Label labEnd =
gen
.DefineLabel();
1913
gen
.MarkLabel(labNext);
1914
labNext =
gen
.DefineLabel();
1918
gen
.Emit(OpCodes.Ldloc, locDiscriminator);
1921
gen
.Emit(OpCodes.Brfalse, labNext);
1929
gen
.Emit(OpCodes.Br, labEnd);
1931
gen
.MarkLabel(labEnd);
1937
LocalBuilder locDiscriminator =
gen
.DeclareLocal(stc.Discriminator.ClrType);
1939
gen
.Emit(OpCodes.Stloc, locDiscriminator);
1941
Label labNext =
gen
.DefineLabel();
1942
Label labEnd =
gen
.DefineLabel();
1947
gen
.MarkLabel(labNext);
1948
labNext =
gen
.DefineLabel();
1952
gen
.Emit(OpCodes.Ldloc, locDiscriminator);
1957
gen
.Emit(OpCodes.Brfalse, labNext);
1964
gen
.Emit(OpCodes.Br, labEnd);
1966
gen
.MarkLabel(labNext);
1970
gen
.MarkLabel(labEnd);
1978
LocalBuilder locDiscriminator =
gen
.DeclareLocal(dt.Discriminator.ClrType);
1980
gen
.Emit(OpCodes.Stloc, locDiscriminator);
1989
Label labNext =
gen
.DefineLabel();
1990
Label labEnd =
gen
.DefineLabel();
1997
gen
.Emit(OpCodes.Ldloc, locDiscriminator);
2001
gen
.Emit(OpCodes.Brfalse, labNext);
2004
gen
.Emit(OpCodes.Br, labEnd);
2006
gen
.MarkLabel(labNext);
2007
labNext =
gen
.DefineLabel();
2010
gen
.MarkLabel(labNext);
2018
gen
.MarkLabel(labEnd);
2024
Label labNext =
gen
.DefineLabel();
2025
Label labEnd =
gen
.DefineLabel();
2028
gen
.MarkLabel(labNext);
2029
labNext =
gen
.DefineLabel();
2035
gen
.Emit(OpCodes.Ceq);
2036
gen
.Emit(OpCodes.Brtrue, labNext);
2039
gen
.Emit(OpCodes.Br, labEnd);
2041
gen
.MarkLabel(labNext);
2045
gen
.MarkLabel(labEnd);
2055
LocalBuilder locLeft =
gen
.DeclareLocal(type);
2056
LocalBuilder locRight =
gen
.DeclareLocal(type);
2057
gen
.Emit(OpCodes.Stloc, locRight);
2058
gen
.Emit(OpCodes.Stloc, locLeft);
2059
gen
.Emit(OpCodes.Ldloc, locLeft);
2060
gen
.Emit(OpCodes.Box, type);
2061
gen
.Emit(OpCodes.Ldloc, locRight);
2062
gen
.Emit(OpCodes.Box, type);
2066
gen
.Emit(GetMethodCallOpCode(miEquals), miEquals);
2069
gen
.Emit(OpCodes.Ceq);
2081
LocalBuilder loc =
gen
.DeclareLocal(type);
2082
gen
.Emit(OpCodes.Ldloca, loc);
2083
gen
.Emit(OpCodes.Initobj, type);
2084
gen
.Emit(OpCodes.Ldloc, loc);
2087
gen
.Emit(OpCodes.Ldtoken, type);
2088
gen
.Emit(OpCodes.Call, typeof(Type).GetMethod(
2095
gen
.Emit(OpCodes.Call, mi);
2096
gen
.Emit(OpCodes.Throw);
2100
gen
.Emit(OpCodes.Ldnull);
2143
gen
.Emit(OpCodes.Call, mi);
2148
gen
.Emit(OpCodes.Call, mi);
2153
gen
.Emit(OpCodes.Call, mi);
2160
gen
.Emit(OpCodes.Ldelem_Ref);
2162
gen
.Emit(OpCodes.Castclass, varType);
2164
gen
.Emit(OpCodes.Ldfld, fi);
2168
gen
.Emit(OpCodes.Ldelem_Ref);
2170
gen
.Emit(OpCodes.Castclass, type);
2193
gen
.Emit(OpCodes.Stfld, fi);
2199
gen
.Emit(GetMethodCallOpCode(meth), meth);
2206
gen
.Emit(OpCodes.Ldfld, fi);
2211
gen
.Emit(GetMethodCallOpCode(meth), meth);
2226
gen
.Emit(OpCodes.Stelem, type);
2234
gen
.Emit(OpCodes.Stelem_I1);
2238
gen
.Emit(OpCodes.Stelem_I2);
2242
gen
.Emit(OpCodes.Stelem_I4);
2246
gen
.Emit(OpCodes.Stelem_I8);
2249
gen
.Emit(OpCodes.Stelem_R4);
2252
gen
.Emit(OpCodes.Stelem_R8);
2256
gen
.Emit(OpCodes.Stelem, type);
2259
gen
.Emit(OpCodes.Stelem_Ref);
2301
gen
.Emit(OpCodes.Ldelem_I4);
2329
LocalBuilder loc =
gen
.DeclareLocal(type);
2330
gen
.Emit(OpCodes.Ldloca, loc);
2331
gen
.Emit(OpCodes.Initobj, type);
2332
gen
.Emit(OpCodes.Ldloc, loc);
2335
gen
.Emit(OpCodes.Ldnull);
2346
gen
.Emit(OpCodes.Conv_I1);
2350
gen
.Emit(OpCodes.Conv_I2);
2356
gen
.Emit(OpCodes.Ldc_I8, (Int64)value);
2359
gen
.Emit(OpCodes.Ldc_R4, (float)value);
2362
gen
.Emit(OpCodes.Ldc_R8, (double)value);
2376
gen
.Emit(OpCodes.Ldc_I4_0);
2379
gen
.Emit(OpCodes.Ldc_I4_1);
2382
gen
.Emit(OpCodes.Ldc_I4_2);
2385
gen
.Emit(OpCodes.Ldc_I4_3);
2388
gen
.Emit(OpCodes.Ldc_I4_4);
2391
gen
.Emit(OpCodes.Ldc_I4_5);
2394
gen
.Emit(OpCodes.Ldc_I4_6);
2397
gen
.Emit(OpCodes.Ldc_I4_7);
2400
gen
.Emit(OpCodes.Ldc_I4_8);
2404
gen
.Emit(OpCodes.Ldc_I4_M1);
2407
gen
.Emit(OpCodes.Ldc_I4_S, (sbyte)value);
2410
gen
.Emit(OpCodes.Ldc_I4, value);