X# Example Project for various DotNet functionality

This forum is meant for anything you would like to share with other visitors
VR
Posts: 102
Joined: Sun Aug 23, 2020 3:07 pm
Location: Italy

X# Example Project for various DotNet functionality

Post 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.
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

X# Example Project for various DotNet functionality

Post by wriedmann »

Hi Volkmar,
thank you very much!
@Robert: maybe you can add that GitHub link to the help index on this site.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
xinjie
Posts: 106
Joined: Wed May 20, 2020 10:05 am
Location: China
Contact:

X# Example Project for various DotNet functionality

Post by xinjie »

Thanks
简单的东西重复做,你能成为专家;重复的东西用心做,你能成为赢家!
VR
Posts: 102
Joined: Sun Aug 23, 2020 3:07 pm
Location: Italy

X# Example Project for various DotNet functionality

Post by VR »

If you like the samples and you have a github account, you could consider to give the repo a star :-)
User avatar
Chris
Posts: 4898
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

X# Example Project for various DotNet functionality

Post by Chris »

Thanks a lot Volkmar, this is very nice! Star given of course!
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
VR
Posts: 102
Joined: Sun Aug 23, 2020 3:07 pm
Location: Italy

X# Example Project for various DotNet functionality

Post 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
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

X# Example Project for various DotNet functionality

Post 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 809 times
Any idea why?

Dick
User avatar
robert
Posts: 4518
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

X# Example Project for various DotNet functionality

Post by robert »

Dick,
Which build are you using ?

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

X# Example Project for various DotNet functionality

Post 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
VR
Posts: 102
Joined: Sun Aug 23, 2020 3:07 pm
Location: Italy

X# Example Project for various DotNet functionality

Post 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
Post Reply