C#
This page has a list of posts related to C#.
C# Basics
- How to execute SQL statement that has a single quote in C# or insert a row with a value that has a quote?
- How to get the current running executable name as a string in C#?
- How to get the relative path (folder the executable was launched in) as a string in C#?
- How to remove an element from a regular array in C#?
- How to return an string array from a enum in C#?
- Working with DateTime and Unix Time Stamps or Universal time (UTC) in C#
- C# – Convert DateTime to and from a Unix timestamp *
- How to pause a Console application in C# or the equivelent to the C++ system(“pause”) statement?
- How to get your project’s version dynamically in C#?
- Detecting when you press “Enter” in a WPF TextBox
- How to document a function so Visual Studio’s Intellisense displays it?
- What is the equivalent of __FILE__ and __LINE__ in C#?
- How read the 64 bit registry from a 32 bit application or vice versa
- Important .NET Framework 4.0 Command Line Tools You Must Know
- C# and Boxing and Unboxing
- C# – The ?? operator or coalesce operator
- StringBuilder in C#
- Array in C# – Tutorial
Learning on your own
- What is and how do I install the Northwind database?
- Where to get free training and tutorial videos for WPF?
- A good site for learning WPF ListView as GridView development in C# and WPF
- Programming Books
Visual Studio
- How to resolve the “Could not create an instance of Type” error when “Reloading the designer” in Visual Studio 2008?
- How to modify the default new class template for C# in Visual Studio 2008?
- Visual Studio 2008 editor colors set to use a black background and how to add these settings yourself or keep your color settings on re-install?
- How to compile a wxWidgets application in Visual Studio 2008?
- Tool to create keyboard shortcuts that paste common data because code snippets don’t work for C++ in Visual Studio 2008
- How to use relative paths when debugging in Visual Studio 2008?
- How to create a custom class template for Xml Serializable classes?
Snippets for Visual Studio
- A snippet for handling each native type in C# and Visual Studio…when generics won’t work.
- Changing the prop snippet for creating a Property in C#
- A Visual Studio snippet for a class with #region sections
Model-View-ViewModel (MVVM) for WPF
Windows Presentation Foundation (WPF)
- How to process command line parameters or arguments in a WPF application?
- Detecting when you press “Enter” in a WPF TextBox
- How to limit or prevent characters in a TextBox in C#? Or How to create a NumberTextBox object?
- Using Resources.resx for strings in a WPF Application: A technique to prepare for localization
Xml Serialization
- Generic XML Serializer Class for C# and an XML Serialization usage example
- How to create a custom class template for Xml Serializable classes?
- Handling a custom name space (xmlns) in an XML with Xml Serialization
- Options for serializing an Array or List when using Serializable?
ADO.NET and Database
- How to query a database in C#?
- How read use an ADO.NET DataSet to read XML files designed with nested attributes?
- How to check if a SQL Table exists in C#?
- How to insert a row into a Microsoft SQL database using C#?
- What is the difference between a DataSet and a DataTable?
- How do I access a MySQL database with C#?
- How I get the number of a rows in a Micorosft SQL table using C#?
- How do I get the number of rows returned from a Microsoft SQL Query in C#?
Security
- How to store a password in an XML file encrypted so it is not in clear text or how to encrypt any text string?
- C# Random Password Generator
Integration with other tools
C# and Regular Expressions
- Regular Expressions in C#(including a new comprehensive email pattern)
- Common Regular Expression Patterns for C#
C# Example Code
- A status hander object that keeps the worst status
- How to add a dynamic image and/or a dynamic button to a DataGrid row using a DataGridTemplateColumn and a DataTemplateSelector?
- A WPF Progress Bar
- How to upload a file to an FTP server using C#?
- How to create a directory on an FTP server using C#?
- Generic XML Serializer Class for C# and an XML Serialization usage example
- Regular Expressions in C#(including a new comprehensive email pattern)
- How read the 64 bit registry from a 32 bit application or vice versa
- C# DataMeasurement object for comparing, converting, and adding and substracting data sizes
- String extension methods
- C# Dictionary
Processes and Threading
Localization
* Links to other blogs