GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ahotko/c-sharp-code-examples: C# Code Examples / Snippets

BranchesTags
Open more actions menu

Latest commit

 

History

84 Commits
84 Commits

Folders and files

NameName
Last commit message
Last commit date
CSharp Code Samples
CSharp Code Samples
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

C# Code Examples (mostly for myself)

A collection of code samples I have used C# and think they might be useful in the future.

Sample Categories

  • Abstract Class
  • Anonymous Types
  • Attributes and Conditionals
    • Debugger
      • DebuggerDisplay
      • DebuggerBrowsable
      • Conditional
      • #if - #define - #endif
    • Obsolete
      • Compiler Warning
      • Compiler Error
    • Conditional
  • Classes
    • Get current Class name
    • Get current Method Name
    • Constructor Chaining
    • Caller Info
  • Comparing
    • IEquatable<T> Additional links: Link
    • IEqualityComparer<T> Additional links: Link
  • Design Patterns
    • Creational Patterns
      • Singleton Pattern
      • Factory Method Pattern
      • Abstract Factory Pattern
    • Behavioral Patterns
      • Strategy Pattern
      • Observer Pattern
      • State Pattern
  • Dictionaries
    • Dictionary Additional links: Link
    • OrderedDictionary (requires System.Collections.Specialized); Additional links: Link
    • SortedDictionary Additional links: Link
  • Extension Methods
  • Garbage Collection
  • Implicit/Explicit Conversion operators
  • Interface
  • LINQ
    • Sum
    • Sum by Groups
    • Ordering (asc, desc)
    • Skipping
    • Take N elements
    • Select Samples with value between
  • Object Pool
  • Operator Overloading Additional links: Link
  • SOLID
    • Single Responsibility Principle
    • Inversion of Control
  • Syntactic Sugars
    • Auto Property
    • Auto Property with default value
    • Property getter/setter
    • String Interpolation
    • Using
    • Pattern Matching
  • Threading
    • BackgroundWorker
    • Thread
  • Timing
  • Tuple Deconstruction (requires System.ValueTuple); Additional links: Link

Useful Libraries

Universal

  • Excel (Native)
    • EPPlus
  • QR Codes
    • QRCoder
  • PDF
    • PdfFileWriter.NET
  • JSON
    • Json.NET
    • Jil - Fast .NET JSON (De)Serializer, Built On Sigil
  • Logging
    • NLog
  • ORM
    • AutoMapper

WPF Specific

  • UI/UX
    • Frameworks
      • MahApps.Metro
      • Modern UI for WPF
    • Iconpacks
      • MahApps.IconPack

About

C# Code Examples / Snippets

Topics

c-sharpc-sharp-learningcode-samplecode-samplescsharp-codecsharp-notescsharp-resourcesdesign-patternsdesignpatternssolid-principles

Resources

Readme
Unlicense
Activity

Stars

47 stars

Watchers

4 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.