Java to C#: Extends in Generic

前端 未结 3 2008
粉色の甜心
粉色の甜心 2021-01-20 22:07

I am trying to convert this Java (Android) code to c# (MonoDroid) but I don\'t understand the

public class Ball         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-20 22:46

    This means that the parametrised type Item has to be a subclass of OverlayItem

    Semantically, this implies that it makes to no sense to instantiate BalloonOverlayView with a parameterised type if it does not extend OverlayItem

提交回复
热议问题