about
12/10/2022
CsBasicDemos Repo
CsBasicDemos Repository
Code illustrates syntax and use for much of the C# language
Quick Status
1.0 Contents
-
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
-
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