❔ From which version, we can call non static methods in field declaration time?
I can call non static methods/props of an object in field declaration time. In which C# version, has it been added? Thanks
8 Replies
C# 1.0 ?
Feel like I'm not understanding the question
definitely before c# 7
which any more or less modern unity version supports I think
Yeah, C# 1.0 sounds right
Are you referring specifically to struct fields?
I think I explained badly. I have misled you
In java, we can call non static methods inside that class but in C# we cannot
Yes, that is a common source of bugs in Java
@Gladiator did you have any further questions? Or you want to $close the thread?
Use the
/close
command to mark a forum thread as answeredWas 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.