Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# return tuple

public Tuple<int, int> GetMultipleValue()
{
     return Tuple.Create(1,2);
}

//C#7
(string, string, string) LookupName(long id) // tuple return type
{
    ... // retrieve first, middle and last from data storage
    return (first, middle, last); // tuple literal
}
 
PREVIOUS NEXT
Tagged: #return #tuple
ADD COMMENT
Topic
Name
3+9 =