Hello All,
Can someone please help me with this? I converted from C# to VB.NET and get this error :
A namespace cannot directly contain members such as fields or methods
I appreciate you looking at this.
Regards
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Namespace UsedCarsSales
Public NotInheritable Class Calculations
Private Sub New()
End Sub
Private Shared pack As Decimal = 300
Public Shared Function getTotalSales() As Decimal
Dim sales As New Sales()
Return sales.SellingPrice
End Function
Public Shared Function getNetProfit(acquisitionCost As Decimal, sellingPrice As Decimal, maintainanceCost As Decimal) As Decimal
Return sellingPrice - (acquisitionCost + maintainanceCost + pack)
End Function
End Class
End Namespace