Тёмный

C# Tutorial For Beginners 2024 - 13. Tuple 

Teddy Smith
Подписаться 66 тыс.
Просмотров 1,6 тыс.
50% 1

C# Tutorial For Beginners 2024 - 13. Tuple
Github repo for project: github.com/ted...
Twitter: / teddysmithdev
Github: github.com/ted...
Linkedin: / teddy-smith-015ba61a3

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@myam754
@myam754 5 месяцев назад
Hey Teddy, thanks for making this playlist. I was able to implement a feature in my day job with the help of this video!
@TeddySmithDev
@TeddySmithDev 5 месяцев назад
no prob. tuples come in handy!
@asdfgha
@asdfgha 2 месяца назад
It's looking pretty much like f# isn't it? Like... As if c# would have just directly ... Copied it.
@joaogabrielv.m328
@joaogabrielv.m328 5 месяцев назад
Sup, Teddy :)
@kvelez
@kvelez 4 месяца назад
var values = ("a", 1, "e"); Console.WriteLine(values); Console.WriteLine(string.Join(" ", values)); Console.WriteLine(values.Item1); Console.WriteLine(values.Item2); Console.WriteLine(values.Item3); var namedValues = (a: "a", b: 1, c: "e"); Console.WriteLine(namedValues); Console.WriteLine(string.Join(" ", namedValues)); Console.WriteLine(namedValues.a); Console.WriteLine(namedValues.b); Console.WriteLine(namedValues.c); (string a, int b, string c) values2 = ("a", 1, "e"); Console.WriteLine(values2); Console.WriteLine(string.Join(" ", values2)); Console.WriteLine(values2.a); Console.WriteLine(values2.b); Console.WriteLine(values2.c); (string a, string b, string c) ReturnValues() => ("a", "b", "c"); Console.WriteLine(ReturnValues()); Console.WriteLine(string.Join(" ", ReturnValues())); Console.WriteLine(ReturnValues().a); Console.WriteLine(ReturnValues().b); Console.WriteLine(ReturnValues().c); (string a, int b, string c) ReturnNamedValues() { return (a: "a", b: 1, c: "e"); } Console.WriteLine(ReturnNamedValues()); Console.WriteLine(string.Join(" ", ReturnNamedValues())); Console.WriteLine(ReturnNamedValues().a); Console.WriteLine(ReturnNamedValues().b); Console.WriteLine(ReturnNamedValues().c); var (a, b, c) = ReturnNamedValues(); Console.WriteLine(a); Console.WriteLine(b); Console.WriteLine(c); var (d, e, f) = ("d", 2, "f"); Console.WriteLine(d); Console.WriteLine(e); Console.WriteLine(f); var (g, h, i) = ReturnValues(); Console.WriteLine(g); Console.WriteLine(h); Console.WriteLine(i);
Далее
C# Tutorial For Beginners 2024 - 15. Constructor
7:03
Просмотров 1,3 тыс.
Нарвался на сотрудника ФСБ⚡️
01:00
БЕЛКА РОЖАЕТ?#cat
00:22
Просмотров 436 тыс.
Go | 6 Unique Techniques
9:04
Просмотров 4 тыс.
Switch IS NOT FASTER than if, (in C++)
11:39
Просмотров 48 тыс.
why are switch statements so HECKIN fast?
11:03
Просмотров 407 тыс.
C# Tutorial For Beginners 2024 - 16. Static
7:23
Просмотров 1,3 тыс.
My 2 Year Journey of Learning C, in 9 minutes
8:42
Просмотров 601 тыс.
Python 101: Learn the 5 Must-Know Concepts
20:00
Просмотров 1,1 млн