C# - StyleCop - SA1121: UseBuiltInTypeAlias - Readability Rules

后端 未结 6 1949
無奈伤痛
無奈伤痛 2020-12-17 08:00

Not found it in StyleCop Help Manual, on SO and Google so here it is ;)

During StyleCop use I have a warning:

SA1121 - UseBuiltInTypeAlias -

6条回答
  •  时光取名叫无心
    2020-12-17 08:22

    This StyleCop rule supposes that using aliases introduces less confusion to the so-believed-to-exist "average language user". Which knows, for example, 'long' type, but somehow scary of 'System.Int64' type and gets confused then sees it. Personally I think it's importatnt just to be consistent in your code style, it's impossible to satisfy everyone.

提交回复
热议问题