Creating a generic method in C#

后端 未结 6 1264
耶瑟儿~
耶瑟儿~ 2020-12-04 09:45

I am trying to combine a bunch of similar methods into a generic method. I have several methods that return the value of a querystring, or null if that querystring does not

6条回答
  •  执念已碎
    2020-12-04 10:14

    I know, I know, but...

    public static bool TryGetQueryString(string key, out T queryString)
    

提交回复
热议问题