I want to pass an object as the default value for defUserInfo method, but It's not possible since it's not a compile-time constant. Is there any other way to make this work?
private static CustomerIdentifications defUserInfo = new CustomerIdentifications { CustomerID = "1010", UniqueIdentifier = "1234" }; public static HttpResponseMessage GenerateToken<T>(T userInfo = defUserInfo) { // stuff return response; }