Visual Studio Icons

For free icons that come with Visual Studio check out   C:\Program Files\Microsoft Visual Studio 9.0\Common7\VS2008ImageLibrary\1033\   OR VS 2008 64 Bit C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033

Stream bytes to files

using (var stream = Assembly.GetAssembly(typeof(StubPolicy)).GetManifestResourceStream( “Documents.TestHelpers.Files.test.msg”)) { const int bufferLength = 256; var buffer = new Byte[bufferLength]; if (stream != null) { int bytesRead = stream.Read(buffer, 0, bufferLength); using (var fs = new FileStream(filename, FileMode.CreateNew, […]


using System; using System.Collections.Generic; namespace Matlock.Core.Specification { public interface ISpecification<T> { bool IsSatisfiedBy(T candidate); ISpecification<T> And(ISpecification<T> other); ISpecification<T> Or(ISpecification<T> other); ISpecification<T> XOr(ISpecification<T> other); ISpecification<T> AndAllOf(IEnumerable<ISpecification<T>> specifications); T Target { get; set; } void GetResults(ResultsVisitor visitor); […]