Search code examples
c#.netvb.netvalueinjecter

A.InjectFrom<B>(c) in VB.NET


We have a similar implementation in C# in our project. However, we use VB code in other project and need the same implementation.

A is an object C is an object B is a cloneinjection class

Thus

A.InjectFrom<CloneInjection>(C)

Says that CloneInjection is a type but can not be used as an expression. Please help me correct this error as I didnt find much directions from google.


Solution

  • Try A.InjectFrom(Of CloneInjection)(C).