0
我有以下屬性定義。 MyLibrary.PumpSignal是一個枚舉如下:CLS兼容問題
Public Enum PumpSignal As Integer
PumpOff = 0
PumpOn = 1
End Enum
然後,我有另一個具有PumpSignal類型屬性的類。
Property PumpState() As MyLibrary.PumpSignal
Get
Return m_PumpState
End Get
Set(ByVal value As MyLibrary.PumpSignal)
m_PumpState = value
End Set
End Property
.NET不斷抱怨PumpState的返回值不符合cls標準。
無重放。引用您看到的* exact *錯誤消息。 – 2010-06-02 18:29:20