✅ why dispose call is the latest in the chain?
Actually I have two questions here:
and output will be:
Created Factory!
Hello from class!
Hello from ref struct!
- How actually duck typing works? Why I can do this:
but can't do the same with class, class requires to inheritIDisposableand it is strange:
and output will be:
Created Factory!
Hello from class!
Hello from ref struct!