xsharp.eu • X# Example Project for various DotNet functionality
Page 1 of 4

X# Example Project for various DotNet functionality

Posted: Mon Aug 02, 2021 4:46 pm
by VR
For education purposes, I created an XSharp Example project, that shows the usage of some important DotNet classes (like Lists, Dictionaries, StringBuilder, XDocument, ...).

We decided to release the project as open source, so the repository can be found on GitHub.

X# Example Project for various DotNet functionality

Posted: Mon Aug 02, 2021 6:36 pm
by wriedmann
Hi Volkmar,
thank you very much!
@Robert: maybe you can add that GitHub link to the help index on this site.
Wolfgang

X# Example Project for various DotNet functionality

Posted: Tue Aug 03, 2021 12:25 am
by xinjie
Thanks

X# Example Project for various DotNet functionality

Posted: Tue Aug 03, 2021 6:54 am
by VR
If you like the samples and you have a github account, you could consider to give the repo a star :-)

X# Example Project for various DotNet functionality

Posted: Wed Aug 04, 2021 8:53 am
by Chris
Thanks a lot Volkmar, this is very nice! Star given of course!

X# Example Project for various DotNet functionality

Posted: Wed Aug 25, 2021 6:28 am
by VR
I added the second block of examples:
  • Is + var
  • Interfaces
  • Linq
    • Deferred execution
    • Where, OrderBy, ThenBy, Select, SelectMany
    • ToList, ToArray, ToDictionary, ToHashset
    • First, FirstOrDefault, Last, LastOrDefault
    • All, Any

X# Example Project for various DotNet functionality

Posted: Wed Aug 25, 2021 9:56 am
by ic2
Hello Volkmar,

I've unpacked the zip straight from Github and when I run it it has the following 8 errors:
ErrorsVMProject.jpg
ErrorsVMProject.jpg (58.24 KiB) Viewed 803 times
Any idea why?

Dick

X# Example Project for various DotNet functionality

Posted: Wed Aug 25, 2021 1:30 pm
by robert
Dick,
Which build are you using ?

Robert

X# Example Project for various DotNet functionality

Posted: Wed Aug 25, 2021 2:27 pm
by ic2
Hello Robert,
Ah, it's some of the newer stuff of course.

I use X# 2.7. My ADS functions stopped working when I installed a 2.8 version in June. Not sure anymore if 2.8 still caused problems in the existing code or if that would work fine now in a 2.8. But then I also have to redistribute X# DLL's everywhere so I will probably update X# end this year or maybe even next year. The X# parts of our program work fine with 2.7

I will check the samples again later!

Dick

X# Example Project for various DotNet functionality

Posted: Wed Aug 25, 2021 3:07 pm
by VR
Hello Dick.

Some of the examples use features from the latest x# compiler. I'll add that info in to the readme.
As a quick fix, you can delete the folders, that contain files with errors.

Volkmar