Skip to main content

Timeline for Tips for code-golfing in C#

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Oct 16, 2020 at 5:37 comment added TehPers With the release of C#9, you will be able to use top-level statements to save even more bytes if your code does not accept any input.
Jan 15, 2018 at 13:41 history edited aloisdg CC BY-SA 3.0
added 565 characters in body
Nov 24, 2017 at 12:34 comment added aloisdg Discussion about unamed functions
Nov 15, 2017 at 18:21 history edited Kamil Drakari CC BY-SA 3.0
Fixed syntax in second example
Nov 6, 2017 at 12:24 history edited aloisdg CC BY-SA 3.0
Add example
Jul 21, 2017 at 9:02 history edited TheLethalCoder CC BY-SA 3.0
Anonymous lambdas need not end in a semi colon
Jan 13, 2017 at 9:34 comment added VisualMelon Note that C# and Java answers of the 'untyped lambda' variety are falling out of favour, you might wish to join the discussion on this meta post. The suggested alternative is (string s,char c)=>s.Contains(c)
Jan 11, 2017 at 10:20 comment added corvus_192 Can you use eta-reduction in this case? Something like this: s=>s.Contains.
Jan 10, 2017 at 8:47 history edited aloisdg CC BY-SA 3.0
added 275 characters in body
Jan 10, 2017 at 8:43 comment added aloisdg @TheLethalCoder Indeed we can! I will update the answer thank you!
Jan 9, 2017 at 14:30 comment added TheLethalCoder Not sure if it's anywhere else in the tips but for this example you can use currying too... s=>c=>...
Jul 15, 2016 at 19:05 history edited aloisdg CC BY-SA 3.0
Add missing word
Jul 10, 2016 at 15:12 history answered aloisdg CC BY-SA 3.0