Skip to content

Commit

Permalink
[Docs] Extensions - better wording for c# equivalent (#5636)
Browse files Browse the repository at this point in the history
slang extensions look pretty same c# extension methods, not partial classes. Partial classes allow extending types to introduce more variables unlike slang extensions. Also c# users that use extension methods much more  than partial types, probably.

Co-authored-by: Yong He <[email protected]>
  • Loading branch information
burak-efe and csyonghe authored Nov 22, 2024
1 parent e0033b3 commit 13f42e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user-guide/03-convenience-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ void test()
}
```

This feature is similar to extensions in Swift and partial classes in C#.
This feature is similar to extensions in Swift and extension methods in C#.

> #### Note:
> You can only extend a type with additional methods. Extending with additional data fields is not allowed.
Expand Down

0 comments on commit 13f42e0

Please sign in to comment.