CREATE TABLE [dbo].[UniqueIdentifier]
(
[Typ] NVARCHAR(50) NOT NULL PRIMARY KEY,
[CurrentMaxId] NVARCHAR(max) NOT NULL
)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Optimalstrategie : IStrategie | |
{ | |
private List<Schnitt> _ausgangsgroessen; | |
private Schnittverteilung _best; | |
private ILaufzeitMonitor _monitor; | |
public Optimalstrategie(ILaufzeitMonitor monitor) | |
{ | |
_monitor = monitor; | |
_best = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///<remark> | |
/// Refactored Version (following IOSP) | |
///</remark> | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace primegenerator | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.FSharp.Core; | |
namespace FSharpConverter | |
{ | |
public static class ToFSharpFuncConverterExtensions | |
{ | |
private static readonly Unit Unit = (Unit)Activator.CreateInstance(typeof(Unit), true); | |
public static Func<T, Unit> ToFunc<T>(this Action<T> action) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using NUnit.Framework; | |
using System.Linq; | |
namespace function_composition_in_csharp | |
{ | |
// The NUnit Nuget package is required for this | |
// To install NUnit, run the following command in the Package Manager Console | |
// PM> Install-Package NUnit -Version 2.6.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Windows; | |
namespace PropertyToobsevable | |
{ | |
public partial class App : Application | |
{ | |
private void Application_Startup(object sender, StartupEventArgs e) | |
{ | |
var vm = new MainWindowViewModel(); | |
var mainWindow = new MainWindow { DataContext = vm }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The NUnit and Chessie Nuget packages are required for this | |
// To install NUnit and Chessie run the following commands from the Package Manager Console | |
// PM> Install-Package NUnit -Version 2.6.4 | |
// PM> Install-Package Chessie | |
using System; | |
using System.Text.RegularExpressions; | |
using Chessie.ErrorHandling; | |
using Chessie.ErrorHandling.CSharp; | |
using Microsoft.FSharp.Core; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Text.ParserCombinators.Parsec (char, many1, string, choice, try, parse) | |
import Text.Parsec.Prim (parserReturn, parserFail, ParsecT) | |
import Data.Functor | |
import Data.Functor.Identity | |
import Data.Either | |
import Test.Hspec | |
sat :: String -> (a -> Bool) -> ParsecT s u m a -> ParsecT s u m a | |
sat msg predicate parser = parser >>= (\x -> if predicate x then parserReturn x else parserFail msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
// ----------------------------------------------------------- | |
// Domain | |
// ----------------------------------------------------------- | |
module GameDomain = | |
type Dice = One | Two | Three | Four | Five | Six |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace TicTacToe | |
{ | |
public enum Player | |
{ | |
PlayerX, | |
PlayerO | |
} |
OlderNewer