How to hide generated javascript file in visual studio code

In this post I am going to show you a cool trick in visual studio code. Let's suppose you are writing typescript code in visual studio code and you want to hide generated javascript code.

Create .vscode folder in your folder and then create settings.json file and paste following code

{ "files.exclude": { "node_modules":true, "**/.git": true, "**/.DS_Store": true, "**/*": true, "**/*.js": {"when": "$(basename).ts"}     } }

How to use Generic Delegate in C#

Action<T>:Encapsulates a method that takes a single parameter and does not return a value.
Action<T1,T2>:Encapsulates a method that has two parameters and does not return a value.
Action<T1,T2,T3>:Encapsulates a method that has three and does not return a value.
Action<T1,T2,T3,T4>:Encapsulates a method that has four and does not return a value.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GenericDelegate
 class Program
     static void Main(string[] args)
         Action print = s => Console.WriteLine(s);
         string message = "Hello World";

         Action add = (x, y) => Console.WriteLine(x+y);
         add(1, 2);



Popular posts from this blog

How to get cell value of gridview using JQUERY

how to convert web page to pdf

Export Html to Pdf using iTextSharp(GridView)