C# List of objects ‍️

C# List of objects ‍️

Bro Code

3 года назад

68,431 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@aditya_asundi
@aditya_asundi - 28.06.2021 16:29

third

Ответить
@nadeekathusharidayananda4094
@nadeekathusharidayananda4094 - 03.07.2021 17:14

Cloud app in java 😭😭😭

Ответить
@TheCodeHunter
@TheCodeHunter - 03.07.2021 17:28

nice :D

Ответить
- 11.07.2021 12:44

Thanks Bro!

Ответить
@spartanranger
@spartanranger - 27.08.2021 14:59

Thanks for the video Bro.

Ответить
@tdkom
@tdkom - 17.01.2022 22:25

thx man really helping me out here

Ответить
@teamcheese1045
@teamcheese1045 - 18.01.2022 08:57

fast and clear, thank you! I have been trying to find how to make a new object anonymous for so long now

Ответить
@whitedinamo
@whitedinamo - 04.02.2022 17:32

lesson check😇

Ответить
@triton5457
@triton5457 - 27.03.2022 16:39

Random comment #44

Ответить
@ci-chol
@ci-chol - 12.05.2022 08:05

How would you go about sorting or searching this list of objects? Since the anonymous objects are all the same according to the list (duplicate Player objects), how could I sort and perform a binary search to find a user with a specific name?

Ответить
@syawo7062
@syawo7062 - 21.07.2022 12:43

holy shit I fucking love you

Ответить
@Proviper666
@Proviper666 - 08.08.2022 09:47

This is not random comment!

Ответить
@__foo__
@__foo__ - 05.12.2022 01:02

Worked!

Ответить
@FullExtension1
@FullExtension1 - 06.12.2022 01:53

you are such a bro, bro.

Ответить
@ballisticmain
@ballisticmain - 18.01.2023 14:02

This is gold, saved me a hell of stress

Ответить
@SweetPeachannel
@SweetPeachannel - 19.03.2023 02:31

where is the video like this but remove and clear instead add pls?

Ответить
@Warpgatez
@Warpgatez - 31.05.2023 04:27

Very nice.

Ответить
@CầnbiếtKo-k5i
@CầnbiếtKo-k5i - 30.08.2023 15:15

helo , tôi muốn ông làm về khoá học unity được không , nếu không chả lời thì chỉ có người chếết mới làm vậy

Ответить
@wombozombo
@wombozombo - 28.09.2023 17:22

random comment

Ответить
@benedictcherlet8583
@benedictcherlet8583 - 29.10.2023 16:31

Random Comment

Ответить
@harisshafi01
@harisshafi01 - 20.11.2023 11:03

kfhajddshf

Ответить
@Suckit-b6k
@Suckit-b6k - 29.11.2023 04:58

christmas

Ответить
@huseyncfrov2514
@huseyncfrov2514 - 03.12.2023 20:17

"Religion, ideology, resources, land, spite, love or just because… No matter how pathetic the reason, it’s enough to start war. War will never cease to exist… reasons can be thought up after the fact… Human nature pursues strife."
~ Pain

Ответить
@richardtaveras7028
@richardtaveras7028 - 15.12.2023 09:31

Can you explain why overriding the ToString method changes the display of the object when passing it through writeline

Ответить
@the_dude_josh
@the_dude_josh - 28.12.2023 06:49

A random comment down below.

Ответить
@cervan1es
@cervan1es - 27.01.2024 09:52

random comment down below

Ответить
@mewmew5125
@mewmew5125 - 08.10.2024 06:26

best

Ответить
@gaminconsole0678
@gaminconsole0678 - 03.11.2024 15:07

just some random comment:
w video !

Ответить
@viniciuslima1064
@viniciuslima1064 - 06.11.2024 18:26

Thanks, bro

Ответить
@jona028i
@jona028i - 03.01.2025 18:30

Question:
I have a list of type "card" called "allCards"
Each card have a familie and a lvl

How do I, without hardcoding each list:
Add a card to a list, that I can call by getting the familie string from the card and then using lvl+1 to look for the next card in said family

Ответить
@VanTaylor99
@VanTaylor99 - 06.03.2025 22:21

Good stuff thank you.

Ответить
@BroCodez
@BroCodez - 28.06.2021 14:34

using System;
using System.Collections.Generic;

namespace MyFirstProgram
{
class Program
{
static void Main(string[] args)
{
List<Player> players = new List<Player>();

players.Add(new Player("Chad"));
players.Add(new Player("Steve"));
players.Add(new Player("Karen"));

foreach (Player player in players)
{
Console.WriteLine(player);
}

Console.ReadKey();
}
}

class Player
{
public String username;

public Player(String username)
{
this.username = username;
}
public override string ToString()
{
return username;
}
}
}

Ответить