Archives

C# 7 provides a very powerful feature from the performance standpoint. This feature is returning by ref.¬†Essentially this allows for value types to be returned without having to copy them. The guidelines are normally that you shouldn’t use a struct with too many fields. Various sources quote various size guidelines. Whenever the struct was over the prescribed size it was recommended that you pass it by reference. With the new syntax for… Read More