Code samples on the X# Documentation Project

Public forum to share code snippets, screen shorts, experiences, etc.
Post Reply
User avatar
wriedmann
Posts: 3765
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Code samples on the X# Documentation Project

Post by wriedmann »

Hi,

I've added a section for code samples on the X# Documentation Project:

https://docs.xsharp.it/doku.php?id=codesamples:code_samples

If someone has ideas what I can add, or wishes to contribute some samples, please let me know.

I'm pretty sure most of you will see something new...

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
robert
Posts: 4540
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Code samples on the X# Documentation Project

Post by robert »

Nice, and thank you for doing this.
Can I suggest one change:
"Named parameters in the constructor" is not named correctly. MyProp is not a parameter but a property. This mechanism is called "Instance Initializers" in other languages. Likewise there are also Collection Initializers which result in an automatic call to collection:Add() when used.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
wriedmann
Posts: 3765
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Code samples on the X# Documentation Project

Post by wriedmann »

Hi Robert,

thank you very much for this correction. My samples are far from being perfect or error free, but they are a starting point.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply