I am trying to convert the ExcelLibrary to VB.NET to better align it with a control set I am working on. However, after I translate the following code:
public class BinarySearchTreeBase<TItem, TTreeNode>
where TItem : IComparable<TItem>
Public Class BinarySearchTreeBase(Of TItem As IComparable(Of TItem), TTreeNode)
However, in C# you apparently do not need to implement the IComparable function CompareTo in order to perform an = or != operation. In VB.NET however I am getting the following errors:
"Operator = not defined for types ... and ...
Anyone know how to fix this conversion for generics?
View Complete Post