public Tuple<string, int> aaCreeDtaOneAccount(int NbLines, string Straccref)
{
return new Tuple<string,int>(StrFullFilDtaname,NbLines);
}
This function is in my Business Layer and i want to access in my UI
I want to access the two values NbLines and StrFullFilDtaname
How do i do that in C# Please Help
Use Item1
and Item2
properties of Tuple<T1, T2>
class:
var tuple = aaCreeDtaOneAccount(42, "Foo");
var strFullFitDtaname = tuple.Item1;
var nblines = tuple.Item2;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.