Embed presentation
Download to read offline










![public class Program
{
public static void Main(string[] args)
{
var obj = false ? Foo.Instance : null;
}
}
.class public auto ansi beforefieldinit Foo
public class Foo
{
public static Foo Instance = new Foo();
static Foo() {}
public Foo() => Console.WriteLine("constructor!");
}](https://image.slidesharecdn.com/monocorefx-171003195558/85/Mono-NET-Core-11-320.jpg)









I was a developer at Microsoft from 2004 to 2017 where I worked on various projects including corefx and OleDb. An example code shows initializing a Guid id, converting it to a string, and conditionally assigning an instance of class Foo to a variable or null depending on a boolean value. The code also shows defining a public static class Foo with a static constructor and instance constructor that writes to the console. Libraries can be distributed as .jar/.aar, .dll/.so/.dylib, or .framework files depending on the platform and my Twitter handle is @EgorBo.










![public class Program
{
public static void Main(string[] args)
{
var obj = false ? Foo.Instance : null;
}
}
.class public auto ansi beforefieldinit Foo
public class Foo
{
public static Foo Instance = new Foo();
static Foo() {}
public Foo() => Console.WriteLine("constructor!");
}](https://image.slidesharecdn.com/monocorefx-171003195558/85/Mono-NET-Core-11-320.jpg)







