[Mono-list] Adding two properties content to string

Wolfgang Mauer wolfgang.mauer at kabelmail.de
Tue Jan 3 18:24:59 UTC 2017


Hi Sascha,

why not making „private static ARTICLE_INFO“ property ?

Somethink like this 

 

private static string ARTICLE_INFO => Title + Path.DirectorySeparatorChar + Language + Path.DirectorySeparatorChar + "Article_Info.xml";

 

 

Von: Mono-list [mailto:mono-list-bounces at lists.xamarin.com] Im Auftrag von Sascha Manns
Gesendet: Dienstag, 3. Januar 2017 17:35
An: Mono-list at lists.ximian.com
Betreff: [Mono-list] Adding two properties content to string

 

Hello list,

i have defined the Property "Title" and "Language".
Now i would like to use that both inside a string like:

private const string ARTICLE_INFO = Title + Language + "Article_Info.xml";

So the string should look like "MyTitle/de-DE/Article_Info.xml".

Maybe anyone knows how to do that?

Greetings Sascha

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-list/attachments/20170103/96d358cd/attachment.html>


More information about the Mono-list mailing list