29 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
those are not attributes?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
For C# versions older than 10, see
$StructureOld
oh ok
so they're classes?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh ok
it's a property, fine
thanks
but anyway
i fill this property with a value, and i want to fill with another one
how can i change the value inside a property ?
and btw that's pretty awesome i'll save it
thing.property = <value>
idk if i'm using a really older C# version but
when i use Thing. it appears just Add an other functions
CS classes tend to call fields attributes
¯\_(ツ)_/¯
read the error
your variable isn't the type you're assuming it is
What type is
Estrutura
?
i translated to be easier to read
it's a list, which means you need to get an item from the list to modify
i think that i got it
your naming conventions baffle me but otherwise it looks correct
bro
i swear to god that if it was my creation i wouldn't put those names
lol
and it's actually really hard to change those horrible names
bc the program has like, more than 20 thousand lines ?
this one for example is just bad or ugly, but have ones that just doesn't make sense to what they're
a) that is awful and whoever did that should be punished and b) if it's a self contained program you can easily rename things using built in refactoring tools
if you put your cursor over the identifier and hold control while pressing R twice it should bring it up
but that would work in just one file isn't?
cause this object appears in a lot of other files
i know that Visual Studio have something to change in a lot of files but i never used it
no, that's the point of refactoring tools
they'll find all the places it's used in the solution and rename it everywhere
damn
i use it constantly (in rider, but VS definitely has the same tool)
that's too much good to be real
awesome
i'll search about it
Refactor rename - Visual Studio (Windows)
Learn how to use the Refactor Rename feature to rename identifiers for code symbols, such as fields, local variables, methods, namespaces, properties and types.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.