コード例 #1
0
        //call the stck to name our numbers

        public void CallStruck(string NameVal)
        {
            MyStruck name = new MyStruck(NameVal);

            Console.WriteLine(name.title);
            NameMystruck(ref name);
            Console.WriteLine("<" + name.title + ">" + " Woooow ,  what an awesome name .");
        }
コード例 #2
0
 protected virtual string NameMystruck(ref MyStruck x)
 {
     x.title = Console.ReadLine();
     return(x.title);
 }