Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "allcaps"
-
Working with Microsoft.CodeAnalysis.CSharp
where I work with CSharpSyntaxTree
I can compile the code in code.
So basically,
SyntaxTree syntaxTree = CSharpSyntaxTree.ParseText(@"
using System;
namespace InAppCompiler
{
public class Writer
{
public void PrintText(string message)
{
Console.WriteLine(message);
}
public void ALLCAPS(string msg)
{
Console.WriteLine(msg);
}
}
}");
Freaking cool!3