Skip to content

Commit ef084fa

Browse files
committed
Minor refactorings.
1 parent 1f3a50b commit ef084fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Generator/Generators/C/CppHeaders.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void GenerateIncludeForwardRefs(TranslationUnit unit)
101101
}
102102

103103
foreach (var include in includes)
104-
WriteLine(include);
104+
WriteLine($"#include \"{include}\"");
105105
}
106106

107107
private Namespace FindCreateNamespace(Namespace @namespace, Declaration decl)

src/Generator/Generators/CLI/CLISources.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public CLISources(BindingContext context, IEnumerable<TranslationUnit> units)
2121
{
2222
}
2323

24-
public override string FileExtension { get { return "cpp"; } }
24+
public override string FileExtension => "cpp";
2525

2626
public override void Process()
2727
{
@@ -45,7 +45,7 @@ public override void Process()
4545
WriteLine("using namespace System::Runtime::InteropServices;");
4646
foreach (var customUsingStatement in Options.DependentNameSpaces)
4747
{
48-
WriteLine(string.Format("using namespace {0};", customUsingStatement)); ;
48+
WriteLine($"using namespace {customUsingStatement};"); ;
4949
}
5050
NewLine();
5151
PopBlock();

0 commit comments

Comments
 (0)