R
R
RandomProgrammer2022-01-09 14:30:44
C++ / C#
RandomProgrammer, 2022-01-09 14:30:44

What is the best way to write?

When writing a method signature, you can write like this:
async public void func()
Or you can do this:
public async void func()
So which is better in terms of code cleanliness?
How to act in situations when keywords can be rearranged?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Ente, 2022-01-09
@RandomProgrammer

61dac9c0087d2865358929.jpeg
Resharper suggests using the second option and can be considered an authority in terms of design.
In terms of performance, there is no difference, it's just the design of the code and there are simply no situations when it would be necessary to change the order.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question