N
Nathan Sokalski
Guest
I have a VB.NET Extension Method (in a VB.NET project) declared as follows:
<Extension()> Public Sub Load(Of T)(ByRef value As T)
I reference this project from a C# project. However, this extension method is not listed. But if I remove the ByRef, it is listed. I realize that it is not always good to mix languages, but I didn't want to convert 100s of classes and work if I could avoid it (and they are both .NET and are in separate projects, so shouldn't it not matter?). Why is the ByRef causing a problem? Thanks.
Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
Continue reading...
<Extension()> Public Sub Load(Of T)(ByRef value As T)
I reference this project from a C# project. However, this extension method is not listed. But if I remove the ByRef, it is listed. I realize that it is not always good to mix languages, but I didn't want to convert 100s of classes and work if I could avoid it (and they are both .NET and are in separate projects, so shouldn't it not matter?). Why is the ByRef causing a problem? Thanks.
Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
Continue reading...