Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

In my application i am using lot of resources. I want to reuse the resource across my application.

Shall i create each resource as separate file and Merge resource in each control. (OR) I have to duplicate resource in all the user controls (Because creating each resource in separate file increase dll size)

For example:
ResourceA and ResourceB

Resource A is required in ControlA, Resource B is required in ControlB and Resource A and B both required in ControlC.

Which one is the Best practice?

1. Shall i create separate resource file for A and B so that changing the resource will affect all the place
(OR)
2. Create a common resource file and add both the resources and merge the resource in all the controls. (Here Resource B is not required for ControlA and Resource A is not required for ControlB)

Please Tell me the Best practice.
Posted
Updated 19-May-14 3:01am
v2

1 solution

Hello Hari,

The best way is to create separate resource file for A and B so that changing the resource will affect all the place in your case.

All the Best:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900