Skip to content

Commit 4c212ac

Browse files
authored
c#: Use csharp naming conventions for Interfaces (#782)
Signed-off-by: James Sturtevant <[email protected]>
1 parent 28c9087 commit 4c212ac

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/csharp/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl WorldGenerator for CSharp {
240240
241241
namespace {namespace} {{
242242
243-
public interface {name}World {{
243+
public interface I{name}World {{
244244
"
245245
);
246246

@@ -472,7 +472,7 @@ impl WorldGenerator for CSharp {
472472
473473
namespace {fully_qaulified_namespace};
474474
475-
public partial class {stub_class_name} : {interface_name} {{
475+
public partial class {stub_class_name} : I{interface_name} {{
476476
{body}
477477
}}
478478
"
@@ -515,7 +515,7 @@ impl WorldGenerator for CSharp {
515515
516516
namespace {namespace}.{name};
517517
518-
public interface {interface_name} {{
518+
public interface I{interface_name} {{
519519
{body}
520520
}}
521521
"

tests/runtime/numbers/wasm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace wit_numbers;
77

8-
public class NumbersWorldImpl : NumbersWorld
8+
public class NumbersWorldImpl : INumbersWorld
99
{
1010
public static void TestImports()
1111
{
@@ -62,7 +62,7 @@ public static void TestImports()
6262
}
6363
}
6464

65-
public class TestImpl : wit_numbers.Wit.exports.test.numbers.Test.Test
65+
public class TestImpl : wit_numbers.Wit.exports.test.numbers.Test.ITest
6666
{
6767
static uint SCALAR = 0;
6868

tests/runtime/strings/wasm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace wit_strings;
66

7-
public class StringsWorldImpl : StringsWorld
7+
public class StringsWorldImpl : IStringsWorld
88
{
99
public static void TestImports()
1010
{

0 commit comments

Comments
 (0)