/XSharpExamples

XSharpExamples is a console application, that contains a series of examples on how to use certain DotNet classes in XSharp.

Primary LanguagexBaseMIT LicenseMIT

Introduction

This solution contains a series of examples on how to use certain functionalities of DotNet in XSharp.

Some of the examples use features from the X# version 2.8 (like local methods and expression bodies)

List of the demonstraded DotNet functionality

1th Session

  • Properties
  • Switch-case
  • Enums
  • Generic Classes
  • StringBuilder
  • List
  • HashSet
  • Dictionary
  • XDocument (export XML)

2nd Session

  • Is + var
  • Interfaces
  • Linq
    • Deferred execution
    • Where
    • OrderBy
    • ThenBy
    • Select
    • SelectMany
    • ToList
    • ToArray
    • ToDictionary
    • ToHashset
    • First
    • FirstOrDefault
    • Last
    • LastOrDefault
    • Any
    • All

3rd Session

  • XDocument (Linq to XML)

4th Session (Blog Posts)

  • String functions
  • Action and Func types

5rd Session

Part 1 - UnitTests

  • Use the Test-Explorer (in the Test Menu) to run the tests
  • Simple Unit Tests (FizzBuzz)
  • Ways to handle Dependencies (using Paramter or Provider)

Part 2 - Benchmarks

  • Use BenchmarkDotNet to perform Performance and Memory Benchmarks

6th Session (Wiki)

  • Yield