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 LyndonGingerich
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #292707 |
Actually, Rider does not always suggest the simplification. I was wrong about that. Probably it only suggests the change when the value is a static `struct` such as an `int` or a `bool`.
I would accept either @#65961's or @#85546's comments as answers. (more) |
— | 20 days ago |
Edit | Post #292899 | Initial revision | — | 20 days ago |
Question | — |
Do Where and OfType preserve List capacity? Unless I am mistaken, `myList.Select(a => a).ToList()` initializes the resulting list to the capacity of `myList.Count`. Does `myList.Where(a => true).ToList()` do so or does it build up from the initial capacity? What about `OfType`? (more) |
— | 20 days ago |
Comment | Post #292707 |
@#65961 I don't care about performance per se, but about understanding the language. I should have worded my question differently. Confirmation that a get-only property and a calculated property are different answers my question. Many thanks! (more) |
— | about 1 month ago |
Comment | Post #282544 |
This might have been better in Code Reviews. (more) |
— | about 2 months ago |
Edit | Post #292707 | Initial revision | — | about 2 months ago |
Question | — |
C#: Performance hit from using calculated property instead of get-only property with initializer? JetBrains Rider suggests that I change this (for example): ```csharp public class Foo { public int OnePlusOne { get; } = 1 + 1; } ``` to this: ```csharp public class Foo { public int OnePlusOne => 1 + 1; } ``` As I understand it, the first example runs the calculation once... (more) |
— | about 2 months ago |
Edit | Post #290885 | Initial revision | — | 9 months ago |
Question | — |
Email alerts for notifications How can I get an email when I get a notification on Codidact? I missed an answer because I thought I would get an email for it. (more) |
— | 9 months ago |
Comment | Post #290818 |
Pardon, but I don't understand. Isn't this Q&A? It's under the Q&A tab. (more) |
— | 9 months ago |
Edit | Post #290818 | Initial revision | — | 9 months ago |
Question | — |
Git command formatting characters in msbuild are interpreted incorrectly I wish to add a property with the date of the current Git commit to the assembly info. From my .csproj: ```xml ``` Build output interpretation: `git -C "\." log -1 --pretty=format:-` Output: `-` Using raw format: ```xml ``` Build output interpretation: `git -C "\... (more) |
— | 9 months ago |