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 System.Linq; | |
using Moq; | |
using NUnit.Framework; | |
namespace WindowsFormsApplication3 | |
{ | |
public class CacheKeys | |
{ |
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 List<StockQuote> parse() | |
{ | |
return sqLoader | |
.getCSVFileContent() | |
.csvList.Skip(1) | |
.Select(line => | |
{ | |
var row = line.Split(','); | |
return new StockQuote | |
{ |
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.Text; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace TestProject1 | |
{ | |
public enum SomeStatusModeType | |
{ | |
Status1, |
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
// Minor modification of Microsoft's Concatenate function here http://msdn.microsoft.com/en-us/library/ms131056.aspx, | |
// by allowing for a different delimiter character. Note that default values aren't supported by SQLCLR Functions or Aggregates | |
using System; | |
using Microsoft.SqlServer.Server; | |
using System.Data.SqlTypes; | |
using System.IO; | |
using System.Text; | |
[Serializable] |
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
namespace WebApplication4.Controllers | |
{ | |
// Some POCO's | |
public class DesignParam | |
{ | |
public string ParamID { get; set; } | |
} | |
public class Foo | |
{ | |
public int ID { get; set; } |
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
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication7._Default" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
</head> | |
<body> | |
<form id="form1" runat="server"> |
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 System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using NUnit.Framework; | |
namespace ClassLibrary1 | |
{ | |
public static class SillyClass |
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
// Yoav's Code | |
public void Test_GetNext() | |
{ | |
Task t1 = Task.Factory.StartNew(() => { getSerial(); }); | |
Task t2 = Task.Factory.StartNew(() => { getSerial(); }); | |
Task t3 = Task.Factory.StartNew(() => { getSerial(); }); | |
Task t4 = Task.Factory.StartNew(() => { getSerial(); }); | |
Task t5 = Task.Factory.StartNew(() => { getSerial(); }); | |
Task.WaitAll(t1, t2, t3, t4, t5); |
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.Concurrent; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using NUnit.Framework; | |
namespace ClassLibrary8 | |
{ |
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; | |
using System.Linq; | |
using Moq; | |
using NUnit.Framework; | |
namespace DB | |
{ | |
public class Person | |
{ | |
public int PersonId { get; set; } |
OlderNewer