153 references to CheckedConversionInExpressionTree_Explicit
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (153)
CodeGen\CodeGenCheckedTests.cs (153)
2486CheckedConversionInExpressionTree_Explicit("char", "char", ConvertMethod.Convert); 2487CheckedConversionInExpressionTree_Explicit("char", "sbyte", ConvertMethod.ConvertChecked); 2488CheckedConversionInExpressionTree_Explicit("char", "byte", ConvertMethod.ConvertChecked); 2489CheckedConversionInExpressionTree_Explicit("char", "short", ConvertMethod.ConvertChecked); 2490CheckedConversionInExpressionTree_Explicit("char", "ushort", ConvertMethod.ConvertChecked); 2491CheckedConversionInExpressionTree_Explicit("char", "int", ConvertMethod.ConvertChecked); 2492CheckedConversionInExpressionTree_Explicit("char", "uint", ConvertMethod.ConvertChecked); 2493CheckedConversionInExpressionTree_Explicit("char", "long", ConvertMethod.ConvertChecked); 2494CheckedConversionInExpressionTree_Explicit("char", "ulong", ConvertMethod.ConvertChecked); 2495CheckedConversionInExpressionTree_Explicit("char", "decimal", ConvertMethod.Convert); 2496CheckedConversionInExpressionTree_Explicit("char", "float", ConvertMethod.Convert); 2497CheckedConversionInExpressionTree_Explicit("char", "double", ConvertMethod.Convert); 2500CheckedConversionInExpressionTree_Explicit("sbyte", "char", ConvertMethod.ConvertChecked); 2501CheckedConversionInExpressionTree_Explicit("sbyte", "sbyte", ConvertMethod.Convert); 2502CheckedConversionInExpressionTree_Explicit("sbyte", "byte", ConvertMethod.ConvertChecked); 2503CheckedConversionInExpressionTree_Explicit("sbyte", "short", ConvertMethod.ConvertChecked); 2504CheckedConversionInExpressionTree_Explicit("sbyte", "ushort", ConvertMethod.ConvertChecked); 2505CheckedConversionInExpressionTree_Explicit("sbyte", "int", ConvertMethod.ConvertChecked); 2506CheckedConversionInExpressionTree_Explicit("sbyte", "uint", ConvertMethod.ConvertChecked); 2507CheckedConversionInExpressionTree_Explicit("sbyte", "long", ConvertMethod.ConvertChecked); 2508CheckedConversionInExpressionTree_Explicit("sbyte", "ulong", ConvertMethod.ConvertChecked); 2509CheckedConversionInExpressionTree_Explicit("sbyte", "decimal", ConvertMethod.Convert); 2510CheckedConversionInExpressionTree_Explicit("sbyte", "float", ConvertMethod.Convert); 2511CheckedConversionInExpressionTree_Explicit("sbyte", "double", ConvertMethod.Convert); 2514CheckedConversionInExpressionTree_Explicit("byte", "char", ConvertMethod.ConvertChecked); 2515CheckedConversionInExpressionTree_Explicit("byte", "sbyte", ConvertMethod.ConvertChecked); 2516CheckedConversionInExpressionTree_Explicit("byte", "byte", ConvertMethod.Convert); 2517CheckedConversionInExpressionTree_Explicit("byte", "short", ConvertMethod.ConvertChecked); 2518CheckedConversionInExpressionTree_Explicit("byte", "ushort", ConvertMethod.ConvertChecked); 2519CheckedConversionInExpressionTree_Explicit("byte", "int", ConvertMethod.ConvertChecked); 2520CheckedConversionInExpressionTree_Explicit("byte", "uint", ConvertMethod.ConvertChecked); 2521CheckedConversionInExpressionTree_Explicit("byte", "long", ConvertMethod.ConvertChecked); 2522CheckedConversionInExpressionTree_Explicit("byte", "ulong", ConvertMethod.ConvertChecked); 2523CheckedConversionInExpressionTree_Explicit("byte", "decimal", ConvertMethod.Convert); 2524CheckedConversionInExpressionTree_Explicit("byte", "float", ConvertMethod.Convert); 2525CheckedConversionInExpressionTree_Explicit("byte", "double", ConvertMethod.Convert); 2528CheckedConversionInExpressionTree_Explicit("short", "char", ConvertMethod.ConvertChecked); 2529CheckedConversionInExpressionTree_Explicit("short", "sbyte", ConvertMethod.ConvertChecked); 2530CheckedConversionInExpressionTree_Explicit("short", "byte", ConvertMethod.ConvertChecked); 2531CheckedConversionInExpressionTree_Explicit("short", "short", ConvertMethod.Convert); 2532CheckedConversionInExpressionTree_Explicit("short", "ushort", ConvertMethod.ConvertChecked); 2533CheckedConversionInExpressionTree_Explicit("short", "int", ConvertMethod.ConvertChecked); 2534CheckedConversionInExpressionTree_Explicit("short", "uint", ConvertMethod.ConvertChecked); 2535CheckedConversionInExpressionTree_Explicit("short", "long", ConvertMethod.ConvertChecked); 2536CheckedConversionInExpressionTree_Explicit("short", "ulong", ConvertMethod.ConvertChecked); 2537CheckedConversionInExpressionTree_Explicit("short", "decimal", ConvertMethod.Convert); 2538CheckedConversionInExpressionTree_Explicit("short", "float", ConvertMethod.Convert); 2539CheckedConversionInExpressionTree_Explicit("short", "double", ConvertMethod.Convert); 2542CheckedConversionInExpressionTree_Explicit("ushort", "char", ConvertMethod.ConvertChecked); 2543CheckedConversionInExpressionTree_Explicit("ushort", "sbyte", ConvertMethod.ConvertChecked); 2544CheckedConversionInExpressionTree_Explicit("ushort", "byte", ConvertMethod.ConvertChecked); 2545CheckedConversionInExpressionTree_Explicit("ushort", "short", ConvertMethod.ConvertChecked); 2546CheckedConversionInExpressionTree_Explicit("ushort", "ushort", ConvertMethod.Convert); 2547CheckedConversionInExpressionTree_Explicit("ushort", "int", ConvertMethod.ConvertChecked); 2548CheckedConversionInExpressionTree_Explicit("ushort", "uint", ConvertMethod.ConvertChecked); 2549CheckedConversionInExpressionTree_Explicit("ushort", "long", ConvertMethod.ConvertChecked); 2550CheckedConversionInExpressionTree_Explicit("ushort", "ulong", ConvertMethod.ConvertChecked); 2551CheckedConversionInExpressionTree_Explicit("ushort", "decimal", ConvertMethod.Convert); 2552CheckedConversionInExpressionTree_Explicit("ushort", "float", ConvertMethod.Convert); 2553CheckedConversionInExpressionTree_Explicit("ushort", "double", ConvertMethod.Convert); 2556CheckedConversionInExpressionTree_Explicit("int", "char", ConvertMethod.ConvertChecked); 2557CheckedConversionInExpressionTree_Explicit("int", "sbyte", ConvertMethod.ConvertChecked); 2558CheckedConversionInExpressionTree_Explicit("int", "byte", ConvertMethod.ConvertChecked); 2559CheckedConversionInExpressionTree_Explicit("int", "short", ConvertMethod.ConvertChecked); 2560CheckedConversionInExpressionTree_Explicit("int", "ushort", ConvertMethod.ConvertChecked); 2561CheckedConversionInExpressionTree_Explicit("int", "int", ConvertMethod.Convert); 2562CheckedConversionInExpressionTree_Explicit("int", "uint", ConvertMethod.ConvertChecked); 2563CheckedConversionInExpressionTree_Explicit("int", "long", ConvertMethod.ConvertChecked); 2564CheckedConversionInExpressionTree_Explicit("int", "ulong", ConvertMethod.ConvertChecked); 2565CheckedConversionInExpressionTree_Explicit("int", "decimal", ConvertMethod.Convert); 2566CheckedConversionInExpressionTree_Explicit("int", "float", ConvertMethod.Convert); 2567CheckedConversionInExpressionTree_Explicit("int", "double", ConvertMethod.Convert); 2570CheckedConversionInExpressionTree_Explicit("uint", "char", ConvertMethod.ConvertChecked); 2571CheckedConversionInExpressionTree_Explicit("uint", "sbyte", ConvertMethod.ConvertChecked); 2572CheckedConversionInExpressionTree_Explicit("uint", "byte", ConvertMethod.ConvertChecked); 2573CheckedConversionInExpressionTree_Explicit("uint", "short", ConvertMethod.ConvertChecked); 2574CheckedConversionInExpressionTree_Explicit("uint", "ushort", ConvertMethod.ConvertChecked); 2575CheckedConversionInExpressionTree_Explicit("uint", "int", ConvertMethod.ConvertChecked); 2576CheckedConversionInExpressionTree_Explicit("uint", "uint", ConvertMethod.Convert); 2577CheckedConversionInExpressionTree_Explicit("uint", "long", ConvertMethod.ConvertChecked); 2578CheckedConversionInExpressionTree_Explicit("uint", "ulong", ConvertMethod.ConvertChecked); 2579CheckedConversionInExpressionTree_Explicit("uint", "decimal", ConvertMethod.Convert); 2580CheckedConversionInExpressionTree_Explicit("uint", "float", ConvertMethod.Convert); 2581CheckedConversionInExpressionTree_Explicit("uint", "double", ConvertMethod.Convert); 2584CheckedConversionInExpressionTree_Explicit("long", "char", ConvertMethod.ConvertChecked); 2585CheckedConversionInExpressionTree_Explicit("long", "sbyte", ConvertMethod.ConvertChecked); 2586CheckedConversionInExpressionTree_Explicit("long", "byte", ConvertMethod.ConvertChecked); 2587CheckedConversionInExpressionTree_Explicit("long", "short", ConvertMethod.ConvertChecked); 2588CheckedConversionInExpressionTree_Explicit("long", "ushort", ConvertMethod.ConvertChecked); 2589CheckedConversionInExpressionTree_Explicit("long", "int", ConvertMethod.ConvertChecked); 2590CheckedConversionInExpressionTree_Explicit("long", "uint", ConvertMethod.ConvertChecked); 2591CheckedConversionInExpressionTree_Explicit("long", "long", ConvertMethod.Convert); 2592CheckedConversionInExpressionTree_Explicit("long", "ulong", ConvertMethod.ConvertChecked); 2593CheckedConversionInExpressionTree_Explicit("long", "decimal", ConvertMethod.Convert); 2594CheckedConversionInExpressionTree_Explicit("long", "float", ConvertMethod.Convert); 2595CheckedConversionInExpressionTree_Explicit("long", "double", ConvertMethod.Convert); 2598CheckedConversionInExpressionTree_Explicit("ulong", "char", ConvertMethod.ConvertChecked); 2599CheckedConversionInExpressionTree_Explicit("ulong", "sbyte", ConvertMethod.ConvertChecked); 2600CheckedConversionInExpressionTree_Explicit("ulong", "byte", ConvertMethod.ConvertChecked); 2601CheckedConversionInExpressionTree_Explicit("ulong", "short", ConvertMethod.ConvertChecked); 2602CheckedConversionInExpressionTree_Explicit("ulong", "ushort", ConvertMethod.ConvertChecked); 2603CheckedConversionInExpressionTree_Explicit("ulong", "int", ConvertMethod.ConvertChecked); 2604CheckedConversionInExpressionTree_Explicit("ulong", "uint", ConvertMethod.ConvertChecked); 2605CheckedConversionInExpressionTree_Explicit("ulong", "long", ConvertMethod.ConvertChecked); 2606CheckedConversionInExpressionTree_Explicit("ulong", "ulong", ConvertMethod.Convert); 2607CheckedConversionInExpressionTree_Explicit("ulong", "decimal", ConvertMethod.Convert); 2608CheckedConversionInExpressionTree_Explicit("ulong", "float", ConvertMethod.Convert); 2609CheckedConversionInExpressionTree_Explicit("ulong", "double", ConvertMethod.Convert); 2612CheckedConversionInExpressionTree_Explicit("decimal", "char", ConvertMethod.Convert); 2613CheckedConversionInExpressionTree_Explicit("decimal", "sbyte", ConvertMethod.Convert); 2614CheckedConversionInExpressionTree_Explicit("decimal", "byte", ConvertMethod.Convert); 2615CheckedConversionInExpressionTree_Explicit("decimal", "short", ConvertMethod.Convert); 2616CheckedConversionInExpressionTree_Explicit("decimal", "ushort", ConvertMethod.Convert); 2617CheckedConversionInExpressionTree_Explicit("decimal", "int", ConvertMethod.Convert); 2618CheckedConversionInExpressionTree_Explicit("decimal", "uint", ConvertMethod.Convert); 2619CheckedConversionInExpressionTree_Explicit("decimal", "long", ConvertMethod.Convert); 2620CheckedConversionInExpressionTree_Explicit("decimal", "ulong", ConvertMethod.Convert); 2621CheckedConversionInExpressionTree_Explicit("decimal", "decimal", ConvertMethod.Convert); 2622CheckedConversionInExpressionTree_Explicit("decimal", "float", ConvertMethod.Convert); 2623CheckedConversionInExpressionTree_Explicit("decimal", "double", ConvertMethod.Convert); 2626CheckedConversionInExpressionTree_Explicit("float", "char", ConvertMethod.ConvertChecked); 2627CheckedConversionInExpressionTree_Explicit("float", "sbyte", ConvertMethod.ConvertChecked); 2628CheckedConversionInExpressionTree_Explicit("float", "byte", ConvertMethod.ConvertChecked); 2629CheckedConversionInExpressionTree_Explicit("float", "short", ConvertMethod.ConvertChecked); 2630CheckedConversionInExpressionTree_Explicit("float", "ushort", ConvertMethod.ConvertChecked); 2631CheckedConversionInExpressionTree_Explicit("float", "int", ConvertMethod.ConvertChecked); 2632CheckedConversionInExpressionTree_Explicit("float", "uint", ConvertMethod.ConvertChecked); 2633CheckedConversionInExpressionTree_Explicit("float", "long", ConvertMethod.ConvertChecked); 2634CheckedConversionInExpressionTree_Explicit("float", "ulong", ConvertMethod.ConvertChecked); 2635CheckedConversionInExpressionTree_Explicit("float", "decimal", ConvertMethod.Convert); 2636CheckedConversionInExpressionTree_Explicit("float", "float", ConvertMethod.Convert); 2637CheckedConversionInExpressionTree_Explicit("float", "double", ConvertMethod.Convert); 2640CheckedConversionInExpressionTree_Explicit("double", "char", ConvertMethod.ConvertChecked); 2641CheckedConversionInExpressionTree_Explicit("double", "sbyte", ConvertMethod.ConvertChecked); 2642CheckedConversionInExpressionTree_Explicit("double", "byte", ConvertMethod.ConvertChecked); 2643CheckedConversionInExpressionTree_Explicit("double", "short", ConvertMethod.ConvertChecked); 2644CheckedConversionInExpressionTree_Explicit("double", "ushort", ConvertMethod.ConvertChecked); 2645CheckedConversionInExpressionTree_Explicit("double", "int", ConvertMethod.ConvertChecked); 2646CheckedConversionInExpressionTree_Explicit("double", "uint", ConvertMethod.ConvertChecked); 2647CheckedConversionInExpressionTree_Explicit("double", "long", ConvertMethod.ConvertChecked); 2648CheckedConversionInExpressionTree_Explicit("double", "ulong", ConvertMethod.ConvertChecked); 2649CheckedConversionInExpressionTree_Explicit("double", "decimal", ConvertMethod.Convert); 2650CheckedConversionInExpressionTree_Explicit("double", "float", ConvertMethod.Convert); 2651CheckedConversionInExpressionTree_Explicit("double", "double", ConvertMethod.Convert); 2654CheckedConversionInExpressionTree_Explicit("E", "int", ConvertMethod.ConvertChecked, "enum E { }"); 2655CheckedConversionInExpressionTree_Explicit("int", "E", ConvertMethod.ConvertChecked, "enum E { }"); 2656CheckedConversionInExpressionTree_Explicit("E", "int", ConvertMethod.ConvertChecked, "enum E : short { }"); 2657CheckedConversionInExpressionTree_Explicit("int", "E", ConvertMethod.ConvertChecked, "enum E : short { }"); 2660CheckedConversionInExpressionTree_Explicit("int", "object", ConvertMethod.Convert); 2661CheckedConversionInExpressionTree_Explicit("object", "int", ConvertMethod.Convert); 2662CheckedConversionInExpressionTree_Explicit("string", "object", ConvertMethod.Convert); 2663CheckedConversionInExpressionTree_Explicit("object", "string", ConvertMethod.Convert); 2674CheckedConversionInExpressionTree_Explicit("(int, int)", "(int, int)?", ConvertMethod.Convert);