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.Threading.Tasks; | |
using System.Diagnostics; | |
using System.Text; | |
using System.Collections.Concurrent; | |
using System.Linq; | |
namespace ConsoleApplication1 | |
{ |
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.Data.Entity; | |
using System.Data; | |
namespace ConsoleApplication3 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
using (var ctx = new DataContext()) |
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 static bool TryParseDoubleFastStream(string s, int begin, int end, out double result) | |
{ | |
result = 0; | |
char c = s[begin]; | |
int sign = 0; | |
int start = begin; | |
if (c == '-') | |
{ | |
sign = -1; |
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 BatchClient | |
{ | |
private readonly CeyenneClient _client; | |
private List<object> _batch; | |
private CompoundResponse _response; | |
public BatchClient(CeyenneClient client) | |
{ | |
_client = client; | |
_batch = new List<object>(); |