Skip to content

Instantly share code, notes, and snippets.

@pierre3
pierre3 / StringExtensions.t4.cs
Created August 21, 2013 14:28
string to primitive

using System;
using System.Linq;
using System.Text;
using System.Globalization;
namespace TextDataUtility
{
public static partial class StringExtensions
{
@josheinstein
josheinstein / Args.cs
Created April 30, 2012 16:21
Argument Validation Helper (C#)
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
/// <summary>
/// Provides methods for checking method arguments for validity and throwing localizable exceptions for invalid
/// arguments or argument combinations.