Thursday, March 3, 2016

Example of ref on reference type

    class Program
    {
        static public void change(List<string> thing)
        {
            thing[0] += "  adjusted";
            List<string> temp = new List<string>();
            temp.Add("change");
            thing = temp;
        }

        static public void refChange(ref List<string> thing)
        {
            List<string> temp = new List<string>();
            temp.Add("refChange");
            thing = temp;
        }
       
        static void Main(string[] args)
        {
            List<string> temp = new List<string>();
            temp.Add("hody doe");
            change(temp);
            Console.WriteLine(temp[0]);
            refChange(ref temp);
            Console.WriteLine(temp[0]);


        }
    }

what do you think happens with appended spaces in sql

select len('dfdf       ')

select len('       dfdf')

in oracle too!


select * from
(

select 'sdff   ' a  from dual
)  main

where main.a ='sdff'

Tuesday, January 26, 2016

504 errors in wcf calls

use trace log - good chance it is a serializing issue

Wednesday, December 23, 2015

url in menus

will not be there for categories or products - this is system generated