Created
June 21, 2022 05:20
-
-
Save NamekMaster/da7537ca74e149d139d063a12c2779ff to your computer and use it in GitHub Desktop.
CSharp source template example
This file contains 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
using System.Collections.Generic; | |
using System.Globalization; | |
using JetBrains.Annotations; | |
using UnityEngine; | |
public static class Foo | |
{ | |
[SourceTemplate] | |
public static void @for<T>(this int x, string i) | |
{ | |
//$ for (int $i$ = 0; $i$ < x; $i$++) | |
{ | |
//$ $END$ | |
} | |
} | |
[SourceTemplate] | |
public static void forEach<T>(this IEnumerable<T> x, string i) | |
{ | |
//$ foreach (var $i$ in x) | |
// { | |
//$ $END$ | |
// } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment