Skip to content

Commit 13f42e0

Browse files
burak-efecsyonghe
andauthored
[Docs] Extensions - better wording for c# equivalent (shader-slang#5636)
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 <yonghe@outlook.com>
1 parent e0033b3 commit 13f42e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/user-guide/03-convenience-features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ void test()
567567
}
568568
```
569569

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

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

0 commit comments

Comments
 (0)