[C# 6] Using Explicit Constructors
Hello folks!
I would know if it still possible use the Explicit Constructor (following image) to declare classes using the current version of C#. I am trying to use this syntax in my coredonet 2.1 project but I am receiving the error: "The name 'myPropertie' does not existis in the current context".
My current code error:
https://i.redd.it/wuus7rkdphz11.png
C# 6 Explicit Constructor Example:
https://i.redd.it/hhrxddn4phz11.png
Thanks for answers and collaboration.
0 comments:
Post a Comment