Hello
I would like to for answers to many questions that I have been in around the c #
- When you use the Static in class?
- When to Use New Car (); <- Just for example
I try to play with it,
Tricks.cs
public class tricks
{
public bil bilname(int gearantal, string farve, string model)
{
bil returnBiltricks = new bil();
returnBiltricks.gear = gearantal;
returnBiltricks.Color = farve;
returnBiltricks.Name = model;
return returnBiltricks;
}
}
bil.cs
class bil
{
public int gear { get; set; }
public string Color { get; set; }
public string Name { get; set; }
}
Webform.aspx.cs
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Lo ...
Go to the complete details ...