gpt4 book ai didi

c# - 你如何使用代码隐藏编写 gcAllowVeryLargeObjects

转载 作者:太空狗 更新时间:2023-10-29 21:50:18 24 4
gpt4 key购买 nike

我如何在后面的代码中用 C# 编写这个? gcAllowVeryLargeObjects 我不能使用配置文件。

下面是配置文件版本

   <configuration>
<runtime>
<gcAllowVeryLargeObjects enabled="true" />
</runtime>
</configuration>

最佳答案

你不能,因为这配置了运行时的操作方式。当运行时正在执行时,您不能修改运行时垃圾收集器的操作方式。。您必须在运行时之前执行此操作,因此符合配置要求。

关于c# - 你如何使用代码隐藏编写 gcAllowVeryLargeObjects,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22103880/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com