👨🏿💻 👩🏿💻 👨🏾💻 👩🏾💻 👨🏽💻 👩🏽💻 👨🏼💻 👩🏼💻 👨🏻💻 👩🏻💻
public void Write(object o) | |
{ | |
if (o ! is string) | |
{ | |
Console.WriteLine("WTF?"); | |
} | |
else | |
{ | |
Console.WriteLine("OMG!"); | |
} |
In less than five years, Visual Studio Code (VS Code) has become the most popular integrated development environment (IDE) in the world. It's built with love and in the open on GitHub, and runs on Chromium (a tip of the hat to Google). VS code is extendable and in this talk we'll cover how to author your very own extension.
You can expect to learn how to:
- Debug your extension
- Target specific languages
- Expose settings to users
- Provide statement completion
- Handle user interactions
public static Dictionary<TKey, TElement> ToDistinctDictionary<TSource, TKey, TElement>( | |
this IEnumerable<TSource> source, | |
Func<TSource, TKey> keySelector, | |
Func<TSource, TElement> elementSelector, | |
IEqualityComparer<TKey> comparer) | |
{ | |
if (source is null) throw new ArgumentNullException(nameof(source)); | |
if (keySelector is null) throw new ArgumentNullException(nameof(keySelector)); | |
if (elementSelector is null) throw new ArgumentNullException(nameof(elementSelector)); | |
This relies on the Newtonsoft.Json
package. Once added as a package reference to your C# project, add the following class. This is an extension methods class, containing two convenience-centric extension methods:
using static Newtonsoft.Json.JsonConvert;
namespace IEvangelist.Extensions
{
public static class ObjectExtensions
{
public static T FromJson<T>(this string json)
public class Coordinates
{
internal int X { get; }
internal int Y { get; }
internal int Z { get; }
public Coordinates(int x, int y)
{
X = x;
You may have heard of WebAssembly, like myself you probably asked "why"? Why have another way of doing web? Why introduce another standard or technology? In a world of technology saturation, what good can this do? All these questions will be answered in this session. We will explore Microsoft's experimental .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly. We will uncover the capabilities and limitations. We will see this in action and debug C# code in the web dev tools, and more. Is this the next major web innovation for the developer community? I hope you join me to find out.