小编Abb*_*ala的帖子

如何在c#中序列化64位枚举

[Flags]
Enum xyz : UInt64
{
  a = 1,
  .
  .
  . 
  b = 17179869184,
}  
Run Code Online (Sandbox Code Playgroud)

用于序列化我正在使用:

[ProtoContract]
class ABC
{
  [ProtoMember(1)]
  public xyz name;
}

name = xyz.b;
Run Code Online (Sandbox Code Playgroud)

我在反序列化时得到 0,那么我怎样才能得到 64 位数字?

c# 64-bit serialization protocol-buffers

8
推荐指数
1
解决办法
130
查看次数

为什么作为 webView2 对象的 coreWebView2 为空?

我正在创建 Microsoft.Web.WebView2.WinForm.WebView2 的对象,但此 coreWebView2 的子对象为空

Microsoft.Web.WebView2.WinForm.WebView2 webView = new Microsoft.Web.WebView2.WinForm.WebView2()
// Change some GUI properties of webView
webView.CoreWebView.NavigateUrl(url)
// I can not access the above line because CoreWebView is null
Run Code Online (Sandbox Code Playgroud)

c# browser invalid-url null-object-pattern webview2

8
推荐指数
5
解决办法
9686
查看次数