What do you want to save?
Add Code snippet
New code examples
-
C# 2021-10-25 18:40:21
Type already defines a member called 'Get'
you have to name your get functions: public class UsersController : ApiController { // GET api/companies/GetByUser/{company_id}/{user_id} public object GetByUser(int company_id, int user_id) { ... } // GET api/companies/GetByP... Add solution -
C# 2021-10-23 22:00:20
check property type of collection c#
var obj = new PropClassDemo(); foreach (PropertyInfo prop in obj.GetType().GetProperties()) { if(prop.PropertyType != typeof(string) && typeof(IEnumerable).IsAssignableFrom(prop.PropertyType)) { Console.Writeline("This prop's type is Ienu... Add solution