samedi 12 juin 2021

Obsolete("somestring", true) attribute when called via reflection

I want to mark an empty constructor as [Obsolete("...", true)] because it's for EF Core only and I don't want it to be called. The thing is, I don't know weather this will create problems with EF Core or not (it won't be a compiler error because it is called via reflection, but will reflection work with this attribute?)





Aucun commentaire:

Enregistrer un commentaire