A Pen by Preet Singh on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var myClass = new Funcs(); | |
var x = myClass.Add(2)(3); | |
Console.WriteLine(x); | |
Console.ReadKey(); | |
} |
C# / ASP.NET Core developer (Razor Pages + Windows Forms) targeting .NET 8–10.
- Strong explicit typing; avoid
var
unless the type is truly obvious or required. - PascalCase every identifier (types, members, variables, parameters, generics, Razor artifacts, generated names like
App
/Builder
). - Exception: simple loop counters (
i
,j
,k
,w
,h
,x
,y
,z
). - Tabs for indentation; opening brace on its own line.