Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            var a = new[] { 5, 6, 7, 8, 9 };


            foreach (var item in __Enumerable.Skip(a, 2))
            {
                System.Console.WriteLine(new { item });
            }

            RewriteToUltraApplication.AsProgram.Launch(typeof(Application));
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            //var px = -2.71;
            //var py = 2.5;

            //var xy = MathUtil.Pow(px, py);
            //// xy = NaN

            {
                var xlng = 58.432703481019288;
                var xlat = 24.442902208375234;

                // rewrite broken? or vba broken?
                var xx = LEST97.lest_function_vba.geo_lest(xlng, xlat, 0);
                // x = 6477013.7889990406

                var yy = LEST97.lest_function_vba.geo_lest(xlng, xlat, 1);
                // y = 525871.67200000642

                //var Tallinn = new { x = 6501171, y = 546561 };
                var Tallinn = new { x = xx, y = yy };
                var Haapsalu = new { x = 6533398, y = 480832 };

                //B0 1.0038706937719
                //ESQ 0.00669438002290341
                //B0 1.0038706937719
                //ESQ 0.00669438002290341

                // does the rewriter breake it?

                var lat = LEST97.lest_function_vba.lest_geo(Tallinn.x, Tallinn.y, 0);
                // lat = 58.432703481010677

                var lng = LEST97.lest_function_vba.lest_geo(Tallinn.x, Tallinn.y, 1);

                // lng = 24.442902208375234


            }
            RewriteToUltraApplication.AsProgram.Launch(typeof(Application));
        }
Exemplo n.º 3
0
        public static void Main(string[] args)
        {
            //java.lang.NumberFormatException: null
            //        at java.lang.Long.parseLong(Unknown Source)
            //        at java.lang.Long.parseLong(Unknown Source)
            //        at ScriptCoreLib.Shared.BCLImplementation.System.__Convert.ToInt64(__Convert.java:144)

            //at System.Data.ExceptionBuilder.SetFailed(Object value, DataColumn column, Type type, Exception innerException)
            //at System.Data.DataColumn.set_Item(Int32 record, Object value)
            //at System.Data.DataRow.set_Item(DataColumn column, Object value)
            //at System.Data.DataRow.set_Item(String columnName, Object value)
            //at SVGNavigationTiming.Design.PerformanceResourceTimingData2Extensions.<AsDataTable>ApplicationPerformance.yield

            //AsDataTable enter
            //AsDataTable Columns set
            //AsDataTable closure_DataTable set
            //AsDataTable.closure_yield enter
            //AsDataTable.closure_yield NewRow set

            //            DateTimeConvertFromObject { e = 1388320283642 }
            //DateTimeConvertFromInt64 { Kind = Utc, value = 12/29/2013 12:31:23 PM }

            //Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.


            // QueryStrategyOfTRowExtensions



            // https://connect.microsoft.com/VisualStudio/feedback/details/850741/roslyn-csharp-compiler-doesnt-recognize-extensionattribute


            var zz =
                //QueryStrategyOfTRowExtensions.AsDataTable(

                // public static DataTable AsDataTable(IEnumerable<PerformanceResourceTimingData2ApplicationPerformanceRow> value);
                // this is missing? roslyn not seeing it?
                //PerformanceResourceTimingData2Conversions.AsDataTable(


                    new[] {

                new PerformanceResourceTimingData2ApplicationPerformanceRow {

                    Key = (PerformanceResourceTimingData2ApplicationPerformanceKey)77
                }
            
            }.AsDataTable();


            new PerformanceResourceTimingData2.ApplicationPerformance().Insert(
                new PerformanceResourceTimingData2ApplicationPerformanceRow { }
            );

            var x = new PerformanceResourceTimingData2.ApplicationPerformance().AsDataTable();
            var y = new PerformanceResourceTimingData2.ApplicationPerformance().AsEnumerable();
            var yy = y.ToArray();
            var z = y.AsDataTable();


            RewriteToUltraApplication.AsProgram.Launch(typeof(Application));
        }