我有一个Java库我正在考虑移植到C#.Java库广泛使用注释(在构建时和运行时).
我从未使用过C#属性,但是要明白它们是Java注释的粗略等价物.
如果我使用属性来替换注释继续使用端口,我需要知道什么?什么会是一样的?不同?什么会咬我?
c# java attributes annotations custom-attributes
annotations ×1
attributes ×1
c# ×1
custom-attributes ×1
java ×1