ResourceManager add parameters
C#
2
Posts
2
Posters
0
Views
1
Watching
-
hey, I'm using the resource manager in C# and I think I see a major shortcomming. In java you can do this: titleDoc: "This is you title of: {0}" and when you call this je can add a parameter Can you do this in C#? thx
I have no idea why they did not add this directly to the resource manager, but apparently they didn't (or I didn't look the right place, always an option). So use string.Format with the string from the ResourceManager.... or use a .NET 3.5 CTP and extend the ResourceManager class. So a shortcoming: yes... a major one: no.