jeudi 20 août 2015

How to cast collection to "SomeClassString"

I have config file,in that file i can type class of values what i want to get:

var myClass1Coll=GetObjects(..).Cast<"MyClass1String">();

and after that i want to get another objects:

var myClass2Coll=GetObjects(..).Cast<"MyClass2String">();

How to do that? Thank you!





Aucun commentaire:

Enregistrer un commentaire