标签: c# xamarin xamarin.android
我尝试在Xamarin中转换suppress lint属性。
我通过c#中的活动将@SuppressLint("NewApi")转换为[SuppressLint(Value = new[] { "NewApi" })]。但是当我编译时,我遇到了这个错误而且我不知道如何修复它。我谷歌很多,但没有找到答案:
@SuppressLint("NewApi")
[SuppressLint(Value = new[] { "NewApi" })]
error: '.class' expected value = Mono.Cecil.CustomAttributeArgument[])