內法,我有以下VB.NET代碼:如何調用VB.NET模塊
Namespace Data
Public Module Part
Public function IsValidPart()
End Function
End Module
End NameSpace
現在,我怎麼叫IsValidPart
方法Part
模塊?當我嘗試調用該方法,我得到以下錯誤:
The type initializer for 'MyCompany.Lender.Data.Part' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object..
你是對的! – azamsharp 2012-07-17 20:25:51