I noticed when I have [Serializable]
instead of [Serializable()]
, the code still compiles.
Is there a rule for this that you can omit the parentheses? Is it a good practice? It seems more readable to me unless I am missing something.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…