RonTheDon
RonTheDon
CC#
Created by RonTheDon on 10/28/2023 in #help
❔ function overloading with Type as parameter.
Hello i have this function : public string remoteCall(string Namespace, string Class, string Function, params object[] p) real example : remoteCall("Cus", "Customer", "GetCustomerTransactions", 123, "2020-01-01", "2021-01-01") 123 being the id and a range of dates. i would like to be able to overload the remoteCall function in a way that it would suggest the id and the 2 dates instead of it being a params object[]. something like this: public string remoteCall(Cus.Customer.GetCustomerTransactions, int Id, string date1, string date2) so that when i type Cus.Customer.GetCustomerTransactions as the first param, visual studio automatically suggests Id, date1 and date2 as the possible params. is this even possible? ty
8 replies