Skip to content

Commit 96335cb

Browse files
authored
Update README.md
1 parent 2244e06 commit 96335cb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ clazz.Members.Add(new CMethod { Name = "Main" });
7272
Console.WriteLine(unit.ToText());
7373
```
7474

75+
### Formatting the C# Source Code
76+
77+
Coaster formats the C# Source Code by calling the `Format()` method:
78+
79+
```csharp
80+
var humanCode = "public class MyClass{ private string field;}";
81+
var formattedCode = Coast.Format(humanCode);
82+
Console.WriteLine(formattedCode);
83+
```
84+
7585
## License
7686

7787
Everything is licensed according to [this](./LICENSE).

0 commit comments

Comments
 (0)