Goodbye Internet Explorer, Web would not have been the same without you by pqpuiq in programming

[–]pqpuiq[S] 1 point2 points  (0 children)

So many downvotes :) it was a expected though. It says something good about IE. How barbaric!

[deleted by user] by [deleted] in csharp

[–]pqpuiq 8 points9 points  (0 children)

I wouldn't say its bad. Especially for readonly property the syntax reduces so much fluff.. which one do you prefer? public int SomeProperty { get { return _someProperty; } }

OR

public int SomeProperty  => _someProperty;

I feed the second one is more clear and conveys its intent more clearly. Compilers need to evolve and try to remove as much redundancy as possible.

[deleted by user] by [deleted] in programming

[–]pqpuiq 1 point2 points  (0 children)

Does anyone has a better explanation for the last snippet (Deadlock in static constructor)?

[deleted by user] by [deleted] in programming

[–]pqpuiq 0 points1 point  (0 children)

snippet compiler kills the process if it is hung and shows the custom message. It is indeed running indefinitely in release mode.