c# - Using Guids as Identifies in resources -


is possible use guids identifier in resource files?

in program user able chose between possible types when creates item. item chosen saved via guid.

but hyphens in guids seem problem resource files. there better solution use replace in order remove every hyphen guid before looking typename in current language?

how turning guids strings?

you can use guid.tostring("n") produce string guid without hyphens.

you may have put non-digit @ start - if do, it's easiest string.format():

string guidstr = string.format("x{0:n}", guid.newguid()); // prefix "x" 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -