.NET code snippets library for C# developers

Collections
Linq
Consoles
Converting
Colors
DateTime
Numbers
Databases
Debug
File system
Directories
Files
Framework
Arrays
Attributes
Basics
DateTime & TimeSpan
Enums
Events
Generics
Math
Reflection
Regex
Strings
Threading
Types
Unsafe Code
XML
GDI
Globalization
Calendar
Currencies
Regions
Text
Implementations
Network
Security
Encryption
Streams
Windows
Authorization
Hardware
Processes
Registry
Services
Win32
Winforms
WPF

How to declare multiline strings

Published: 15. February 2012 | Updated: 15. February 2012
Categories: Basics Strings Tags: Basics C# Text

How to convert string to char array and vice versa

Published: 15. February 2012 | Updated: 15. February 2012
Categories: Strings Tags: Array Basics C# Text

How to check for interface implementation

Published: 15. February 2012 | Updated: 15. February 2012
Categories: Basics Tags: Basics C#

How to calculate Fibonacci numbers/sequence

Published: 15. February 2012 | Updated: 15. February 2012
Categories: Math Tags: C# Math

How to get assembly attributes

Published: 15. February 2012 | Updated: 15. February 2012
Categories: Attributes Reflection Tags: Attributes C# Reflection

How to convert IEnumerable to IQueryable

Published: 14. February 2012 | Updated: 14. February 2012
Categories: Linq Tags: C# Collections Linq

How to create readonly collection

Published: 14. February 2012 | Updated: 14. February 2012
Categories: Collections Tags: C# Collections Linq

How to dynamically add generic condition to IQueryable

Published: 14. February 2012 | Updated: 14. February 2012
Categories: Linq Tags: C# Collections Linq

How to get bus info

Published: 12. February 2012 | Updated: 12. February 2012
Categories: Hardware Tags: C# Hardware Windows WMI

How to get BIOS info

Published: 12. February 2012 | Updated: 12. February 2012
Categories: Windows Tags: C# Windows WMI

How to enumerate computer temperature sensors

Published: 12. February 2012 | Updated: 12. February 2012
Categories: Hardware Tags: C# Hardware Windows WMI

How to enumerate motherboard devices

Published: 12. February 2012 | Updated: 12. February 2012
Categories: Hardware Tags: C# Hardware Windows WMI

How to enumerate memory devices using WMI

Published: 12. February 2012 | Updated: 12. February 2012
Categories: Hardware Tags: C# Hardware Windows WMI

How to enumerate windows services

Published: 12. February 2012 | Updated: 12. February 2012
Categories: Services Tags: C# Services Windows WMI