Does dependency injection make sense for "pass by value" types? Is there a difference in DI for Value Types and Reference Types

32 Views Asked by At

There are two type of data structures.

Pass by reference and Pass by value

So I was studying Dependency Injection in depth. I had a doubt which is "Does dependency injection makes sense for value types"?

I mean should I take care of something when I am passing Value Types as Dependencies?

And is there any difference when your dependency is a Value Type or a Reference Type? or am I just over thinking

0

There are 0 best solutions below