문제

I did a quick check on MSDN followed by a quick search here but I did not find anything definitively stating what characters are/are not allowed in .net resource string names. Currently I am trying to find out if a ":" is allowed, but I would prefer to find some reference that covers all cases.

도움이 되었습니까?

해결책

Colon is not allowed on resources names. If you try it, you'll get

The resource name XX:XXX is not a valid identifier

For resources names applies the same rules as for variables. If you inspect the .designer file you'll see that for every string resource you defined a property is created so it needs to follow the same naming rules.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top