Feast

Results 5 comments of Feast

+ 我在Avalonia的文档里面看到了CompiledBinding相关的内容,但是只停留于使用,具体实现还需要再看一下源码,非常感谢您提供的代码样例。 + 源生成代码我考虑过几种情况 : **`const`字段** , **`static`字段** 或者 **`static`属性**。 一开始这个项目的功能是参考的 `HandyControl` 中的T4模板生成资源键绑定, 他的选择的是生成 `const` 字段。 在本项目中,我希望能更加**自动**的配置翻译资源的源,这也就意味着代码需要无感知的提交到`I18NExtension`管理。而在这个过程中,我遇到了几个问题: + 在最初的设计中,**静态构造函数**扮演了一个十分重要的角色,生成的`Provider`不借助任何**反射**也能将自己提交到`I18NExtension`完成注册的工作。但由于C#的类加载机制,`const` 引用不会触发类型的**静态构造函数**,这意味着即便`xaml`中存在 `{x:Static Foo.ConstMember}` Foo的**静态构造函数**也不会被调用。 + 因此我将其改为了 **`static`字段**, 这似乎解决了问题,但倘若调用方纯粹的 Binding 到内存,不使用任何 `static`字段,...

> WPF平台也有x:Bind的实现了,https://github.com/levitali/CompiledBindings 可惜的是WPF本身用到了许多反射,还无法NativeAOT

> > > WPF平台也有x:Bind的实现了,https://github.com/levitali/CompiledBindings > > > > > > 可惜的是WPF本身用到了许多反射,还无法NativeAOT > > 以及大量COM() 是的,DX是COM, Windows Only 😿

> @feast107 Please sign the CLA so we can assign a reviewer to this PR. For more information see: https://github.com/protocolbuffers/protobuf/pull/11034/checks?check_run_id=9617744316 Thanks for your reminding, I've now signed the CLA.

I would like to know the build situation this time