我有一個api的class
ex:
class AA{
public string A (string a , string b){
程式碼...
}
public string B (string c , string d){
我需要做一個測試的網頁 有辦法知道方法A跟方法B所需帶入的參數名稱嗎
參考:
How can you get the names of method parameters?
參數名稱是可以隨意命名的, 呼叫者需要知道參數的型態和用途即可呼叫, 至於參數的名稱是可以不知道的, 欲取得函式的定義可以參考:
How C# Reflection Works With Code Examples