how do I write this in c# in the code behind? gcAllowVeryLargeObjects I can't use a config file.
below is the config files version
<configuration>
<runtime>
<gcAllowVeryLargeObjects enabled="true" />
</runtime>
</configuration>
You can't, because this configures how the runtime operates. You cannot modify how the runtime's garbage collector operates while the runtime is executing. You must do it before the runtime, thus the configuration requirement.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With