以下XML注释给出了编译时警告:
/// <summary>
/// Provides data for the <see cref="TextDraw.Click"/> event.
/// </summary>
public class TextDrawEventArgs : EventArgs
{
//...
public TextDraw TextDraw { get; private set; }
}
Run Code Online (Sandbox Code Playgroud)
我希望TextDraw.Click引用TextDraw类中的事件,但它正在拾取TextDraw作为此TextDrawEventArgs类型的属性.
我该如何解决这个问题?
我正在运行用 C# Xamarin for Android(目标框架 android 8.1)编写的应用程序,并在调试物理设备时获得这样的日志消息:
09-20 08:53:04.165 D/Mono (25500): GC_BRIDGE: Complete, was running for 0.14ms
09-20 08:53:04.165 D/Mono (25500): GC_MINOR: (Nursery full) time 2.53ms, stw 3.56ms promoted 40K major size: 13040K in use: 10738K los size: 40968K in use: 38154K
09-20 08:53:04.617 D/Mono (25500): GC_BRIDGE waiting for bridge processing to finish
09-20 08:53:04.621 D/Mono (25500): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 91 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.10ms …Run Code Online (Sandbox Code Playgroud)