C# 7.0 New Features –Return Locals as Refs

Shakti Tanwar

September 3, 2017

2 thoughts on “C# 7.0 New Features –Return Locals as Refs

  1. Thanks for your very instructive illustrations of the new C# features.
    Just wanted to point out a very minor copy-paste error in your example above. The comment is wrong in the line below, as this time refIndex IS a reference and the value in the array IS updated
    refIndex = 111;//No change in value since destination is not a ref type

    Regards,
    Regis

Leave a Reply to Shakti Tanwar Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>