The function in .NET can return multiple values

xiaoxiao2021-03-06  65

The function in .NET can return multiple values ​​through Out keyword string testout (Out char i)

{

i = 'a'; return "good study";} private void button_click (Object Sender, System.EventArgs E)

{Char i; // Don't initialize String getReturn = Testout (OUT I); RichtextBox1.AppendText ("The return value executed by:" getreturn "/ r / n"); richtextbox1.appendtext ("Return to OUT parameters Yes: " i.tostring () " / r / n ");}

转载请注明原文地址:https://www.9cbs.com/read-111132.html

New Post(0)