Browse by Tags

Tagged Content List
  • Blog Post: F# 1.9.6.0 Link Roundup

    - Welcome to the F# CTP project system: project property pages [ reddit ] - Downloading stock prices in F# - Part I - Data modeling [ reddit ] - Units of Measure in F#: Part One, Introducing Units [ reddit ] [ digg ] - Welcome to the F# CTP project system: project templates [ reddit ][ digg...
  • Blog Post: Sample

    Object Oriented Simple Class with Default Constructor Simple Class with Constructor Parameters Class with Multiple Constructors Simple Class Inheritance Declare and Use an Interface Inherit an Interface from another Interface Anonymously Implement an Interface Interface with no...
  • Blog Post: ILMerge in MSBuild

    <!-- Use of included script samples are subject to the terms specified at http://www.microsoft.com/resources/sharedsource/licensingbasics/permissivelicense.mspx Written by Jomo Fisher --> <Project DefaultTargets="Build" xmlns=" http://schemas.microsoft.com/developer/msbuild/2003 "> ...
  • Blog Post: Mock Grid Implementation

    class Grid : IGrid { int left; int right; int bottom; int top; public int TotalCalls = 0; public Grid(int left, int right, int bottom, int top) { this.left = left; this.right = right; this.bottom = bottom; this.top = top; } public int CountBlocksSet(int x1, int x2, int y1...
  • Blog Post: Recognizer Driver

    static void Main(string[] args) { int totalCalls = 0; int totalGridsEvaluated = 0; for (int left = 0; left<WIDTH; ++left) for (int right = left; right<WIDTH; ++right) for (int bottom = 0; bottom<HEIGHT; ++bottom) for (int top = bottom; top<HEIGHT; ++top) { Grid grid = new...
  • Blog Post: Naive Recognizer

    static Shape Recognize(IGrid grid) { int left = Int32.MaxValue; int right = -1; int bottom = Int32.MaxValue; int top = -1; for (int x = 0; x < 8; ++x) { for (int y = 0; y < 8; ++y) { if (grid.CountBlocksSet(x, x, y, y) == 1) { left = Math.Min(left, x); right = Math.Max(right...
  • Blog Post: MSBuild Sample Code Demonstrating How to Target 1.1 Framework with VS Whidbey Beta 2

    <!-- Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm Written by Jomo Fisher --> <Project DefaultTargets="Build" xmlns=" http://schemas.microsoft.com/developer/msbuild/2003 "> <!-- These two property groups inform VS that...
  • Blog Post: MSBuild Sample Code Demonstrating How to Convert Older Projects to VS8 Format

    /* Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm Written by Jomo Fisher */ using System; using System.Text; using Microsoft.Build.Conversion; class ConvertProject { static void Main(string[] args) { ProjectFileConverter c = new ProjectFileConverter...
  • Blog Post: MSBuild Sample Code Demonstrating How to Target 1.1 Framework with VS Whidbey Beta 1

    <!-- Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm Written by Jomo Fisher --> <Project xmlns=" http://schemas.microsoft.com/developer/msbuild/2003 "> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <PropertyGroup>...
Page 1 of 1 (9 items)