Skip to content

Instantly share code, notes, and snippets.

View EgorBo's full-sized avatar
🛠️
Working from home

Egor Bogatov EgorBo

🛠️
Working from home
View GitHub Profile
@EgorBo
EgorBo / test results.cs
Created August 14, 2017 20:41
test results.cs
windows sqlclient:
Drms.Server.Oas.Core.Tests.TableWriterTests.WriterPerformanceTest - DAODirect SingleInsert (10) records: 199 ms
Drms.Server.Oas.Core.Tests.TableWriterTests.WriterPerformanceTest - DAODirect MultiInsert (10) records: 32 ms
Drms.Server.Oas.Core.Tests.TableWriterTests.WriterPerformanceTest - DAODirect BulkInsert (10) records: 33 ms
Drms.Server.Oas.Core.Tests.TableWriterTests.WriterPerformanceTest - DAODirect SingleInsert (1000) records: 69 ms
Drms.Server.Oas.Core.Tests.TableWriterTests.WriterPerformanceTest - DAODirect MultiInsert (1000) records: 69 ms
Drms.Server.Oas.Core.Tests.TableWriterTests.WriterPerformanceTest - DAODirect BulkInsert (1000) records: 77 ms
Drms.Server.Oas.Core.Tests.TableWriterTests.WriterPerformanceTest - DAODirect SingleInsert (10000) records: 222 ms
Drms.Server.Oas.Core.Tests.TableWriterTests.WriterPerformanceTest - DAODirect MultiInsert (10000) records: 221 ms
@EgorBo
EgorBo / ARKit issue.cs
Created August 21, 2017 19:27
ARKit issue.cs
using System;
using System.Diagnostics;
using System.Linq;
using ARKit;
using UIKit;
namespace ArPlaneAnchorIssue
{
public partial class ViewController : UIViewController
{
using System;
using System.Diagnostics;
using System.Linq;
using ARKit;
using UIKit;
namespace ArPlaneAnchorIssue
{
public partial class ViewController : UIViewController
{
@EgorBo
EgorBo / dispose test.cs
Last active August 30, 2017 23:47
dispose test.cs
using Xunit;
namespace System.Data.Common.Tests
{
public class DbConnectionTests
{
static volatile bool _wasFinalized;
class FinalizingConnection
{
@EgorBo
EgorBo / catch-string-bug.cs
Last active September 8, 2017 14:03
catch-string-bug.cs
using System;
using System.Linq.Expressions;
namespace MyConsole
{
class Program
{
static void Main(string[] args)
{
TryExpression throwCatchString = Expression.TryCatch(
@EgorBo
EgorBo / Array.InternalEnumerator equals bug.cs
Last active September 8, 2017 14:00
Array.InternalEnumerator equals bug.cs
using System;
using System.Linq;
namespace MyConsole
{
class Program
{
static void Main(string[] args)
{
var eq = Enumerable.Empty<int>().GetEnumerator() == Enumerable.Empty<int>().GetEnumerator();
@EgorBo
EgorBo / NewArrayBounds OOM.cs
Created September 8, 2017 13:13
NewArrayBounds OOM.cs
using System;
using System.Linq.Expressions;
namespace MyConsole
{
class Program
{
static void Main(string[] args)
{
Expression newArrayExpression = Expression.NewArrayBounds(typeof(ulong), Expression.Constant(2147483647, typeof(int?)));
@EgorBo
EgorBo / Invalid FuncName.cs
Created September 8, 2017 13:38
Invalid FuncName.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace MyConsoleHelper
{
class Program
{
@EgorBo
EgorBo / Try expression is not allowed inside a filter body.cs
Created September 8, 2017 13:41
Try expression is not allowed inside a filter body.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace MyConsoleHelper
{
class TestException : Exception { }
@EgorBo
EgorBo / ExceptionThrownInFilter bug.cs
Created September 8, 2017 13:44
ExceptionThrownInFilter bug.cs
using System;
using System.Linq.Expressions;
namespace MyConsoleHelper
{
class Program
{
static void Main(string[] args)
{
TryExpression tryExp = Expression.TryCatch(