23 Replies
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
If your code is too long, post it to: https://paste.mod.gg/Idk, what's the error?
Population.BirthCaclulator()
that's whyOn the " Population.BirthCalculator()"
yes
BirthCalculator(Population)
is what you wantOh
Since it's a regular method, not an extension method
It doesn't work
Ah, it's not
static
so you'd need an instance of the encompassing class
An easy fix is making the method static
:o, what does instance of the encompassing class mean? xd
you'll need
to call it
An instance of the class the method is inside of
oh
But btw, it still doesn't work for some reasons
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
If your code is too long, post it to: https://paste.mod.gg/Again, describe "doesn't work"
BirthCalculator
BirthCaclulator
Spot the differencexdd
I see it now
ahaha thanks
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.