If you don't know how to define a class in c# and can't discover such a basic thing from google then I don't see how you have the ability to write a game. I'd advise you to get a book on c# and go through it to learn the basics before you try anything more advanced. You can't expect to learn c# from posting questions on a forum.
public class Unit
{
public float health { get; set; }
public float speed { get; set; }
public float damage { get; set; }
public float attackSpeed { get; set; }
public string name { get; set; }
public Unit(float health, float speed, float damage, string name, float attackSpeed)
{
this.health = health;
this.speed = speed;
this.damage = damage;
this.name = name;
this.attackSpeed = attackSpeed;
}
}
Usage
public Unit BasicBoat = new Unit(99F, 4F, 15F, "Basic Boat", 1.1F);
You can create properties on the fly (as you do in js) using "dynamic" but that is not likely to meet your overall requirements.