Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

Timeline for answer to Read-only ("const"-like) function parameters of C# by XWiśniowiecki

Current License: CC BY-SA 4.0

Post Revisions

5 events
when toggle format what by license comment
Nov 29, 2023 at 13:55 comment added Ethan Fischer Also looks like you can't use in with lambas or async methods, which makes it unusable in many cases
Oct 14, 2023 at 20:41 comment added Killy.MXI in won't prevent you from modifying reference types (classes), as in the question. And for mutable structs it will do defensive cloning if you call any methods of the input struct.
Feb 13, 2021 at 23:40 history edited Glenn Slayden CC BY-SA 4.0
With respect and deference to the author, a few grammar improvements.
Sep 15, 2020 at 23:06 history edited XWiśniowiecki CC BY-SA 4.0
added 102 characters in body
Sep 15, 2020 at 23:01 history answered XWiśniowiecki CC BY-SA 4.0