Skip to content

Instantly share code, notes, and snippets.

View BojanKomazec's full-sized avatar
💭
DevOps Now!

Bojan Komazec BojanKomazec

💭
DevOps Now!
View GitHub Profile
using System;
namespace MyApp
{
internal enum MyEnum
{
Value1,
Value2,
Value3,
}
using System;
public class Program
{
public static void Main()
{
var c = new C();
c.FooCall(123);
c.FooCall(456);
}
using System;
public class Program
{
public static void Main()
{
var c = new C();
c.FooCall(123);
c.FooCall(456);
}
try
{
await task;
}
catch (OperationCanceledException ex)
{
// handle task cancellation
}
catch
{
using System;
using System.Threading;
using System.Threading.Tasks;
public class Program
{
public static void Main()
{
Program.MainAsync().Wait();
}
using System;
using System.Threading;
using System.Threading.Tasks;
public class Program
{
public static void Main()
{
Program.MainAsync().Wait();
}
using System;
using System.Threading;
using System.Threading.Tasks;
public class Program
{
public static void Main()
{
Program.MainAsync().Wait();
}
using System;
using System.Threading;
using System.Threading.Tasks;
public class Program
{
public static void Main()
{
Program.MainAsync().Wait();
}
using System;
using System.Threading;
using System.Threading.Tasks;
public class Program
{
public static void Main()
{
Program.MainAsync().Wait();
}
using System;
using System.Threading.Tasks;
public class Program
{
public static void Main()
{
Program.MainAsync().Wait();
}