92 references to Convert
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (92)
CodeGen\CodeGenCheckedTests.cs (92)
2386CheckedConversionInExpressionTree_Implicit("char", "decimal", ConvertMethod.Convert); 2387CheckedConversionInExpressionTree_Implicit("char", "float", ConvertMethod.Convert); 2388CheckedConversionInExpressionTree_Implicit("char", "double", ConvertMethod.Convert); 2395CheckedConversionInExpressionTree_Implicit("sbyte", "decimal", ConvertMethod.Convert); 2396CheckedConversionInExpressionTree_Implicit("sbyte", "float", ConvertMethod.Convert); 2397CheckedConversionInExpressionTree_Implicit("sbyte", "double", ConvertMethod.Convert); 2407CheckedConversionInExpressionTree_Implicit("byte", "decimal", ConvertMethod.Convert); 2408CheckedConversionInExpressionTree_Implicit("byte", "float", ConvertMethod.Convert); 2409CheckedConversionInExpressionTree_Implicit("byte", "double", ConvertMethod.Convert); 2415CheckedConversionInExpressionTree_Implicit("short", "decimal", ConvertMethod.Convert); 2416CheckedConversionInExpressionTree_Implicit("short", "float", ConvertMethod.Convert); 2417CheckedConversionInExpressionTree_Implicit("short", "double", ConvertMethod.Convert); 2425CheckedConversionInExpressionTree_Implicit("ushort", "decimal", ConvertMethod.Convert); 2426CheckedConversionInExpressionTree_Implicit("ushort", "float", ConvertMethod.Convert); 2427CheckedConversionInExpressionTree_Implicit("ushort", "double", ConvertMethod.Convert); 2432CheckedConversionInExpressionTree_Implicit("int", "decimal", ConvertMethod.Convert); 2433CheckedConversionInExpressionTree_Implicit("int", "float", ConvertMethod.Convert); 2434CheckedConversionInExpressionTree_Implicit("int", "double", ConvertMethod.Convert); 2440CheckedConversionInExpressionTree_Implicit("uint", "decimal", ConvertMethod.Convert); 2441CheckedConversionInExpressionTree_Implicit("uint", "float", ConvertMethod.Convert); 2442CheckedConversionInExpressionTree_Implicit("uint", "double", ConvertMethod.Convert); 2446CheckedConversionInExpressionTree_Implicit("long", "decimal", ConvertMethod.Convert); 2447CheckedConversionInExpressionTree_Implicit("long", "float", ConvertMethod.Convert); 2448CheckedConversionInExpressionTree_Implicit("long", "double", ConvertMethod.Convert); 2452CheckedConversionInExpressionTree_Implicit("ulong", "decimal", ConvertMethod.Convert); 2453CheckedConversionInExpressionTree_Implicit("ulong", "float", ConvertMethod.Convert); 2454CheckedConversionInExpressionTree_Implicit("ulong", "double", ConvertMethod.Convert); 2461CheckedConversionInExpressionTree_Implicit("float", "double", ConvertMethod.Convert); 2467CheckedConversionInExpressionTree_Implicit("int", "object", ConvertMethod.Convert); 2479CheckedConversionInExpressionTree_Implicit("(int, int)", "(int, int)?", ConvertMethod.Convert); 2486CheckedConversionInExpressionTree_Explicit("char", "char", ConvertMethod.Convert); 2495CheckedConversionInExpressionTree_Explicit("char", "decimal", ConvertMethod.Convert); 2496CheckedConversionInExpressionTree_Explicit("char", "float", ConvertMethod.Convert); 2497CheckedConversionInExpressionTree_Explicit("char", "double", ConvertMethod.Convert); 2501CheckedConversionInExpressionTree_Explicit("sbyte", "sbyte", ConvertMethod.Convert); 2509CheckedConversionInExpressionTree_Explicit("sbyte", "decimal", ConvertMethod.Convert); 2510CheckedConversionInExpressionTree_Explicit("sbyte", "float", ConvertMethod.Convert); 2511CheckedConversionInExpressionTree_Explicit("sbyte", "double", ConvertMethod.Convert); 2516CheckedConversionInExpressionTree_Explicit("byte", "byte", ConvertMethod.Convert); 2523CheckedConversionInExpressionTree_Explicit("byte", "decimal", ConvertMethod.Convert); 2524CheckedConversionInExpressionTree_Explicit("byte", "float", ConvertMethod.Convert); 2525CheckedConversionInExpressionTree_Explicit("byte", "double", ConvertMethod.Convert); 2531CheckedConversionInExpressionTree_Explicit("short", "short", ConvertMethod.Convert); 2537CheckedConversionInExpressionTree_Explicit("short", "decimal", ConvertMethod.Convert); 2538CheckedConversionInExpressionTree_Explicit("short", "float", ConvertMethod.Convert); 2539CheckedConversionInExpressionTree_Explicit("short", "double", ConvertMethod.Convert); 2546CheckedConversionInExpressionTree_Explicit("ushort", "ushort", ConvertMethod.Convert); 2551CheckedConversionInExpressionTree_Explicit("ushort", "decimal", ConvertMethod.Convert); 2552CheckedConversionInExpressionTree_Explicit("ushort", "float", ConvertMethod.Convert); 2553CheckedConversionInExpressionTree_Explicit("ushort", "double", ConvertMethod.Convert); 2561CheckedConversionInExpressionTree_Explicit("int", "int", ConvertMethod.Convert); 2565CheckedConversionInExpressionTree_Explicit("int", "decimal", ConvertMethod.Convert); 2566CheckedConversionInExpressionTree_Explicit("int", "float", ConvertMethod.Convert); 2567CheckedConversionInExpressionTree_Explicit("int", "double", ConvertMethod.Convert); 2576CheckedConversionInExpressionTree_Explicit("uint", "uint", ConvertMethod.Convert); 2579CheckedConversionInExpressionTree_Explicit("uint", "decimal", ConvertMethod.Convert); 2580CheckedConversionInExpressionTree_Explicit("uint", "float", ConvertMethod.Convert); 2581CheckedConversionInExpressionTree_Explicit("uint", "double", ConvertMethod.Convert); 2591CheckedConversionInExpressionTree_Explicit("long", "long", ConvertMethod.Convert); 2593CheckedConversionInExpressionTree_Explicit("long", "decimal", ConvertMethod.Convert); 2594CheckedConversionInExpressionTree_Explicit("long", "float", ConvertMethod.Convert); 2595CheckedConversionInExpressionTree_Explicit("long", "double", ConvertMethod.Convert); 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); 2635CheckedConversionInExpressionTree_Explicit("float", "decimal", ConvertMethod.Convert); 2636CheckedConversionInExpressionTree_Explicit("float", "float", ConvertMethod.Convert); 2637CheckedConversionInExpressionTree_Explicit("float", "double", ConvertMethod.Convert); 2649CheckedConversionInExpressionTree_Explicit("double", "decimal", ConvertMethod.Convert); 2650CheckedConversionInExpressionTree_Explicit("double", "float", ConvertMethod.Convert); 2651CheckedConversionInExpressionTree_Explicit("double", "double", ConvertMethod.Convert); 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); 2694case ConvertMethod.Convert: 2741case ConvertMethod.Convert: 2781expectedMethod == ConvertMethod.Convert);