using System;
namespace Exercise
{
public abstract class Gun
{
public Gun(string name, int bullets)
{
}
public string Name { get; set; }
public int Bullets
{
get { return Bullets; }
set
{
if (value < 0)
{
throw new ArgumentЕxception("Bullets cannot be below 0");
}
else
{
Bullets = value;
}
}
}
}
}
This is the code that I am trying to run. I have checked and the framework is the same, which was an answer to a similar question. I am using VS code and have all the essential extensions downloaded. Do you have any idea what could be giving this error?
The type or namespace name 'ArgumentЕxception' could not be found (are you missing a using directive or an assembly reference?)