【发布时间】:2014-11-15 00:33:26
【问题描述】:
我有一个界面
Public Interface IPlotSurface2D
WriteOnly Property PlotBackBrush() As IRectangleBrush
End Interface
这是实现接口的类
Public Class PlotSurface2D
Implements IPlotSurface2D
Public WriteOnly Property PlotBackBrush() As IRectangleBrush _
Implements IPlotSurface2D.PlotBackBrush
Set(value As IRectangleBrush)
Me.plotBackBrush_ = DirectCast(value, IRectangleBrush)
Me.plotBackColor_ = DirectCast(Nothing, Object)
Me.plotBackImage_ = DirectCast(Nothing, Drawing.Bitmap)
End Set
End Property
End Class
我得到以下编译错误:
错误 86 'PlotBackBrush' 无法通过类 'PlotSurface2D' 在项目外部公开类型 'IRectangleBrush'。
我该如何解决这个问题?
【问题讨论】:
-
不客气。另外,由于您是 StackOverflow 的新手,我想通知您,您可以通过勾选答案旁边的勾号来为好的答案投票并接受对您帮助最大的答案。在本网站上,点赞或接受的答案都算作“感谢”。
标签: vb.net inheritance interface