Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Daveā
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #292707 |
Pretty sure OP's understanding is correct. `{ get; } = 1 + 2;` will compute once with the value stored in a hidden backing field. (For a non-static class/property it would be computed once for each _instance_).
`=> 1 + 2;` will evaluate each time (possibly save for optimizations).
What I wonde... (more) |
— | about 1 month ago |