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>
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.