Комментарии:
third
ОтветитьCloud app in java 😭😭😭
Ответитьnice :D
ОтветитьThanks Bro!
ОтветитьThanks for the video Bro.
Ответитьthx man really helping me out here
Ответитьfast and clear, thank you! I have been trying to find how to make a new object anonymous for so long now
Ответитьlesson check😇
ОтветитьRandom comment #44
Ответить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?
Ответитьholy shit I fucking love you
ОтветитьThis is not random comment!
ОтветитьWorked!
Ответитьyou are such a bro, bro.
ОтветитьThis is gold, saved me a hell of stress
Ответитьwhere is the video like this but remove and clear instead add pls?
ОтветитьVery nice.
Ответить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
Ответитьrandom comment
ОтветитьRandom Comment
Ответитьkfhajddshf
Ответитьchristmas
Ответить"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
Can you explain why overriding the ToString method changes the display of the object when passing it through writeline
ОтветитьA random comment down below.
Ответитьrandom comment down below
Ответитьbest
Ответитьjust some random comment:
w video !
Thanks, bro
Ответить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
Good stuff thank you.
Ответить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;
}
}
}