UvuvwevweOnyetenye
✅ How to do the C# equivalent of passing an std::function into a class
Hi, so I'm trying to make a class function that can accept a function of type float(float). I don't really understand how C# works because I'm coming from C++, which is very different than C# besides the names of data types. I've heard of delegates, but in all instances of a delegate parameter I've seen it as a pointer. Is a pointer bad C# syntax though in this case, since I'm trying to learn how to write C# well versus writing C# like C++. thanks in advance
30 replies