Reputation
634
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 5
Newest
 Yearling
Impact
~9k people reached

  • 0 posts edited
  • 0 helpful flags
  • 586 votes cast
Jul
23
comment How do I handle setters on immutable fields?
@SebastianRedl sadly, primary constructors were removed from the final C#6 release.
Jul
17
awarded  Yearling
Jul
16
answered Control Start Of Program
Jul
10
comment Can you do iterative development in c#?
There is no C# REPL... yet
Jun
26
comment Generic Sorting of Lists<>
Also, if you implement IComparable<T> on each type, you can use List<T>.Sort().
May
14
comment How to measure the potential value of refactoring
There is also a business risk to keeping the VB6: Microsoft dropped full support of VB6 years ago and has been limping along on "It Just Works" support since. The build environment won't run on anything newer than XP, and the runtime could stop working in any future version of Windows. For example, there has yet to be a formal announcement that VB6 is supported on Windows 10.
Mar
30
comment How is CancellationToken.IsCancellationRequested updated?
@RobertHarvey Microsoft now hosts most/all of the .NET source at sourceof.net. It has decent tools for searching around code and you can link directly to types/methods, such as CancellationToken.
Feb
10
answered Best practice to include XSD in C# project
Jan
28
comment Derive from a base class but not include a condition in the base class's method
Also, is there really a need for a separate class? From your description, it sounds like HighDetails is little more than a Details class with includeHighDetails set to true and includeLowDetails set to false.
Nov
26
comment Should I accept empty collections in my methods that iterate over them?
Rather than use yield returns, it might be preferable to extract a method for converting a single Node to a TransformedNode and replace your utility method with LINQ collection.Select(TransformNode) calls.
Nov
21
comment Name/Fix for Production Code Whose Sole Purpose is to Facilitate Testing?
I don't know that I agree the injection constructor is a problem which requires hours of effort to change/test, but I would fix the empty constructor to overload properly: public MyClass() : this(new Something()) { }
Oct
31
comment Is this extension method any better than just casting to an int?
@Snowman you get the type-checking benefits of the GetInt32 call without the extra hit of calling GetOrdinal columns * rows times
Oct
31
answered Is this extension method any better than just casting to an int?
Oct
2
comment Should I denote that a method satisfies an interface?
quite the opposite: StyleCop has a specific rule about avoiding regions
Sep
22
answered Distinct Log and Trace for each object in .NET
Sep
16
comment Static typing vs. dynamic typing
Type inference != dynamic typing. For example, many (most? all?) functional languages use static type systems, but they also mostly use type inference.
Sep
10
answered Should the Presenter depend on the View or the vice versa?
Aug
13
comment Has there really not been one thing in the past 20 years that provided huge software development gains?
@user61852 also keep in mind that coding software is roughly equivalent to the design phase of other professions. Being overtime and overbudget is common. For example, just look at any new aircraft (notable and recent: the F-35).
Jul
18
answered Organizing solution / project structure and classes for Line of Business Application (LOB)
Jul
8
answered Why isn't there a next operation on enums?