type name “XXX” does not exist in the type “xxx” error, does anyone know how to fix this

I keep getting a error saying that lgdWeapon does not exist in WeaponBase, even though it does, I got this error before, then I rewrote the code and got the same error

—–My Code—–

public class weaponBase { public class weapon { (class code) } public class lgdWeapon : weapon { (Class code) } } 

—–End of Code—– I left out some parts of the code aka the methods and attributes because I don't think that they are the problem, Does anyone know how to fix this? Also I dont know if it matters but I am using factory constructors for the lgdWeapon class, atleast I think I am, this is what I'm talking about

public static lgdWeapon lgdWeaponRWeaponREnchant(DataBase dataBase)

if I need to post all the code please let me know.

by imgonnagetshocked via /r/csharp

Leave a Reply