fbpx
× Share your code snippets, screen shots etc. here

Code samples on the X# Documentation Project

  • Wolfgang Riedmann
  • Wolfgang Riedmann's Avatar Topic Author
  • Offline
More
7 months 2 weeks ago #1 by Wolfgang Riedmann
Code samples on the X# Documentation Project was created by Wolfgang Riedmann
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

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago #2 by Robert van der Hulst
Replied by Robert van der Hulst on topic Code samples on the X# Documentation Project
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
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

  • Wolfgang Riedmann
  • Wolfgang Riedmann's Avatar Topic Author
  • Offline
More
7 months 2 weeks ago #3 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic Code samples on the X# Documentation Project
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

Please Log in or Create an account to join the conversation.