N
Nathan Sokalski
Guest
I have two generic extension methods, one for a regular value and one for an array. Here are the declarations:
<Extension()> Public Sub Save(Of T)(ByRef value As T)
<Extension()> Public Sub Save(Of T)(ByRef value As T())
As you can see, the only difference is that one parameter is a regular value, and the other is an array. However, I receive an error saying that neither one is most specific. I thought that whether the value was an array or not would determine which one to use, but I guess that is not true. Is there anything I can do other than create separate methods (give the methods different names)?
Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
Continue reading...
<Extension()> Public Sub Save(Of T)(ByRef value As T)
<Extension()> Public Sub Save(Of T)(ByRef value As T())
As you can see, the only difference is that one parameter is a regular value, and the other is an array. However, I receive an error saying that neither one is most specific. I thought that whether the value was an array or not would determine which one to use, but I guess that is not true. Is there anything I can do other than create separate methods (give the methods different names)?
Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
Continue reading...