Simple is hard. --Steve Lautenschlager
Log In
Providing Microsoft .NET Articles and Code Samples since 2002
Home
→
Categories
→
technologies - .net
Home
Search
Articles
Categories
About
Welcome to my blog and project site for Microsoft.NET development.
I've been a full time .NET developer for ten years, but I didn't start my professional life as a programmer ...
more
Share/Print this page:
Category: .NET
technologies
.net
[Articles: 16]
Sort:
Most Recent
Updated
Author
Pages
Views Today
Total Views
Convert String to Int in C#
By
steve
on
November 05, 2011
. | Updated on
January 22, 2012
. |
418
views,
1
today. |
1
page.
■
.NET
■
C#
■
Conversions
■
Data Types
■
Snippet
■
Text and Strings
Three different ways to convert a string to an integer in C# and the pros and cons of each.
How Do I Read a File As an Array of Bytes in C#
By
steve
on
February 16, 2007
. | Updated on
January 22, 2012
. |
24,850
views,
83
today. |
1
page.
■
.NET
■
C#
■
IO
■
Snippet
Learn how to use a stream to read the byte content of a file. You can also use the new ReadAllBytes method on the File class.
Visual Studio 2007 Preview!
By
steve
on
February 13, 2007
. | Updated on
January 22, 2012
. |
18,476
views,
7
today. |
1
page.
■
.NET
■
Blog
■
News
■
Visual Studio
Visual Studio 2007 Preview
Extract Keywords from a Search String in C#
By
steve
on
January 27, 2007
. | Updated on
January 22, 2012
. |
28,547
views,
12
today. |
1
page.
■
.NET
■
C#
■
Has Downloads
■
Has Images
■
Regular Expressions
■
Snippet
■
Text and Strings
A better way than String.Split to extract words from a string.
How Can I Easily Manage an XML Configuration File in .NET?
By
steve
on
January 10, 2007
. | Updated on
January 22, 2012
. |
40,061
views,
50
today. |
1
page.
■
.NET
■
C#
■
Data
■
IO
■
Snippet
■
XML
.NET makes reading and writing XML as easy as pie. Use a class template and you never have to deal with XML at all.
Using the HttpContext object
By
steve
on
January 09, 2007
. | Updated on
January 22, 2012
. |
50,022
views,
22
today. |
1
page.
■
.NET
■
ASP.NET
■
C#
■
Server side
■
Snippet
■
Web
Learn how you can get access to the HttpContext object when you're not in the code-behind of an ASPX page?
Extract Hex Digits From a String
By
steve
on
January 09, 2007
. | Updated on
January 22, 2012
. |
10,021
views,
5
today. |
1
page.
■
.NET
■
C#
■
Conversions
■
Regular Expressions
■
Snippet
■
Text and Strings
Learn how to extract hex digits from a string using C#. Useful for cases where you have dirty hex information or extra characters.
Parsing Email Addresses with Regular Expressions
By
steve
on
January 09, 2007
. | Updated on
January 22, 2012
. |
82,470
views,
70
today. |
1
page.
■
.NET
■
C#
■
Email
■
Policy and Standards
■
Regular Expressions
■
Snippet
Use C# to parse and validation email address. I present both a strict and lenient regular expression and discuss what constitutes a valid email address.
Parsing URLs with Regular Expressions and the Regex Object
By
steve
on
January 09, 2007
. | Updated on
January 22, 2012
. |
47,605
views,
28
today. |
2
pages.
■
.NET
■
C#
■
Overview
■
Policy and Standards
■
Regular Expressions
■
Snippet
■
Text and Strings
■
Web
Go in depth in understanding the structure of a URL or URI and see a single regular expression that can be used to extract the various pieces in one fell swoop.
Convert Integer To Enum Instance in C#
By
steve
on
January 09, 2007
. | Updated on
January 01, 2012
. |
223,944
views,
103
today. |
1
page.
■
.NET
■
C#
■
Conversions
■
Enums
■
Snippet
Sample C# code showing how to convert an integer to an instance of an enumeration.
Convert String to Enum Instance
By
steve
on
January 09, 2007
. | Updated on
January 15, 2012
. |
186,699
views,
236
today. |
1
page.
■
.NET
■
C#
■
Conversions
■
Enums
■
Snippet
■
Text and Strings
C# code sample showing how to convert a string to an instance of an enumeration.
Convert Hex String to .NET Color
By
steve
on
January 09, 2007
. | Updated on
January 22, 2012
. |
95,701
views,
110
today. |
1
page.
■
.NET
■
C#
■
Conversions
■
CSS
■
HTML
■
Snippet
Learn an easy way and a hard way to convert a hex string to a .NET color using C#.
Convert .NET Color to Hex String
By
steve
on
January 09, 2007
. | Updated on
January 22, 2012
. |
41,616
views,
50
today. |
1
page.
■
.NET
■
C#
■
Conversions
■
CSS
■
HTML
■
Snippet
Learn how to convert a hex string to a .NET color using C#.
C# RandomProvider Class
By
steve
on
January 09, 2007
. | Updated on
January 22, 2012
. |
18,097
views,
13
today. |
1
page.
■
.NET
■
C#
■
Math and Statistics
■
Snippet
I provide a class, RandomProvider, which provides random numbers for several of the .NET data types and based on statistical distributions.
C# StopWatch Class
By
steve
on
January 07, 2007
. | Updated on
January 22, 2012
. |
45,530
views,
18
today. |
1
page.
■
.NET
■
C#
■
Performance
■
Snippet
A high precision stop watch class for timing in your C# or .NET programs
Hexadecimal (Hex) to Decimal Lookup Table
By
steve
on
January 07, 2007
. | Updated on
January 22, 2012
. |
130,622
views,
230
today. |
2
pages.
■
.NET
■
C#
■
Reference
■
Snippet
■
Web Design
Convert hex to decimal. Convert dec to hexadecimal. This handy lookup table is a lot easier than punching it into your calculator.