I believe if you want to add a custom type to your UiPath low-code files you cannot simply create a cs file with the class in the project. You are going to need to make a class library in Visual Studio and install it as a Nuget package.
If you only use the custom class in your coded workflow, I do not believe this is required.