U
U
Uncle Bogdan2021-07-01 22:49:00
C++ / C#
Uncle Bogdan, 2021-07-01 22:49:00

Why does it work like this?

Here it is

public List<Weapon> Weapons => weapons;

Why => weapons?

What does weapons mean?

Why is it working for me?

public List<StarPower> Starpowers => starpowers;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-07-01
@motkot

weapons - this field is visible.
And the arrow is a read-only property.
Why do you even climb into the unit if you are not familiar with the basic syntax?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question