Understanding of managed and unmanaged resources, hosting of managed resources
In the. net programming environment, system resources are divided into managed resources and unmanaged resources.
For the collection of managed resources, manual
[Switch] the difference between using managed and unmanaged resources in C # And how to manually release unmanaged resources :,
Managed resources refer to. NET resources that can be automatically recycled, mainly the memory resources allocated on
A managed resource refers to a. NET a resource that can be reclaimed automatically, mainly refers to the memory resources allocated on the managed heap. The collection of managed resources does not require human intervention, and the. NET runtime
From: http://www.cnblogs.com/lzhdim/archive/2009/11/04/1595845.html
Before learning about finalize and dispose, we need to understand two concepts: managed resources and non-commissioned resources.A. managed resources generally refer to the memory
Use resources to provide the best device compatibility
To allow applications to support multiple device configurations, it is essential to always provide default resources for each type of resource used by the application.
For example, if an
This conclusion comes from an optimization request. At first, the loading of a page was very slow and the load event could not be triggered, therefore, we hope that we can optimize the external resources of the page by dividing static files into
C # differences between managed and unmanaged Resources
ManagedThe concept appeared after the birth of the. NET Framework. In plain terms, it runs under the. NET Framework and is called by applications managed by the. NET Framework or other
In a. NET programming environment, the system's resources are divided into managed and unmanaged resources.
The recycling of managed resources does not require manual intervention, and you cannot interfere with their recycling, all you can do is
Directory
Assembly List Resources
Resx resource file
Use resourcereader and resourceset to parse binary resource files
Use ResourceManager to parse binary resource files
Look down at the designer. CS file of the resx resource
Once resources are provided in the application, resources can be used by referencing resource IDs. All resource IDs are defined in the project's R class, which is automatically generated by the aapt tool.
When an application is compiled, aapt
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.