namespace ProductsApp.Models
{
public class Product
{
public int Id { get; set; }
public string Name { get; set; }
public string Category { get; set; }
public decimal Price { get; set; }
}
}
Namespace ProductsApp.Models
Public Class Product
Public Property Id As Integer
Return
End Get
Set
= value
End Set
End Property
Public Property Name As String
Return
End Get
Set
= value
End Set
End Property
Public Property Category As String
Return
End Get
Set
= value
End Set
End Property
Public Property Price As Double
Return
End Get
Set
= value
End Set
End Property
End Class
End Namespace
This should have been:
Namespace ProductsApp.Models
Public Class Product
Public Property Id As Integer
Public Property Name As String
Public Property Category As String
Public Property Price As Double
End Class
End Namespace
open class Product {
public var Id: Int32 {
get {
return
}
set {
= newValue
}
}
public var Name: String! {
get {
return
}
set {
= newValue
}
}
public var Category: String! {
get {
return
}
set {
= newValue
}
}
public var Price: Float64 {
get {
return
}
set {
= newValue
}
}
}