Improving your C# Skills
上QQ阅读APP看书,第一时间看更新

Parameters

The out and ref parameters are not allowed as parameters in the method signature. If multiple values need to be returned, tuples or a custom data structure can be used. The method should always return Task or Task<TResult>, as discussed previously.

Here are a few signatures for both synchronous and asynchronous methods: