about
12/10/2022
CsBasicDemos Repo
CsBasicDemos code

CsBasicDemos  Repository

Code illustrates syntax and use for much of the C# language

Quick Status Code functions correctly no known defects Demonstration code yes Documentation yes Test cases no Static library no Build requires C# 7.0 Planned design changes Will occasionally add more examples

1.0 Contents

This repository provides a collection of basic C# syntax demonstrations.
  • CSharpExamples
    Arrays, properties, indexers, types, disposing
  • CSharpDemos
    Classes, class relationships, extension methods, enumerable types, and generics
  • MethodParameterDemo
    Illustrates the syntax and semantics of:
    • pass value type by value
    • pass value type by reference
    • pass reference type by value
    • pass reference type by reference
    Helps you understand the .Net object model.
  • Conversions
    Illustrates conversions, especially to and from strings
  • Collections
    Looks at core container types
  • NetContainers
    Simple demos of most of the .Net container types
  • CsReflection
    Use of reflection to query an assembly for types, methods, properties, ...
  • Delegates-using
    Original and more recent syntax for using delegates
  • ExtensionMethods
    Demonstrates creation and use of extension methods
  • LambdaDemo
    Use of lambdas
  • LambdaCapture
    Explores capturing local data in a lambda
  • LinqExamples
    Basic examples of Language integrated query (Linq)
  • LinqQueryExamples
    Deeper look at Linq queries
  • TestDeserialization
    Example of serialization/de-serialization to/from memory stream
  • ThreadTechniques
    Explores basic .Net threading facilities
  • ThreadsAndTasks
    Examines how Tasks work

2.0 Build

All code was built with Visual Studio, Community Edition - 2019, and tested on Windows 10.
  Next Prev Pages Sections About Keys