xml - How to categorize containers in Unity configuration file -


is possible apply category attribute container tag can later use retrieve containers?

i looking in config file:

<container name="example1" category="externalservice"> <container name="example2" category="externalservice"> <container name="example3" category="miscellaneous"> 

then in code want able like...

section.containers.where(c => c.category == "externalservice").tolist(); 

thanks!

i think can't. use kind of "namespace" categorize containers:

<container name="externalservice.example1"> <container name="externalservice.example2"> <container name="miscellaneous.example3"> 

and then:

section.containers        .where(c => c.category.startswith("externalservice."))        .tolist(); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -