Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Text;
using System.Collections.Generic;
namespace WordWrapper
{
public class Program
{
/***
@danielhunex
danielhunex / gist:c324eafac969babf10a440f33b989f50
Last active December 24, 2019 23:59
Typescript 3.7 -- The Cool Stuff

Optional Chaining

-Enables to immediately return undefined in object chaining if a null or undefined is encountered. ?. is the symbol to achieve this. Example #1

const customer :{
    customerId: number,
    firstName?: string,
 lastName?:string,
@danielhunex
danielhunex / hosted-services-dotnet-core.md
Last active February 21, 2023 20:48
Hosted Services in .Net Core
 
public class HelloContext
{
   private ISomething _smh ; 
     void Foo(string key)
    {
       switch(key)
        {
 case "A":