Tuple Literal Deconstruction - CSharp Language Basics

CSharp examples for Language Basics:Tuple

Description

Tuple Literal Deconstruction

Demo Code

using System;//from www .  ja va 2  s  .co m
using System.ComponentModel;
class TupleLiteralDeconstruction
{
   static void Main()
   {
      (string text, Func<int, int> func) = (null, x => x * 2);
      (text, func) = ("text", x => x * 3);
   }
}

Related Tutorials