mardi 1 mai 2018

rename NameSpace in reflection?

when code tries to get the namespace name via reflection, using either:

typeof(MyNamespace.MyClass).Namespace;

or other methods, I want that the Namespace name returned my pre-defined string.

This doesn't work:

typeof(MyNamespace.MyClass).Namespace  = "helloWorld";

any ways?





Aucun commentaire:

Enregistrer un commentaire