jeudi 9 juillet 2015

How to create generic nested type dynamically in c#

This is my usecase to raise custom fault exception with error code and description in WCF.

new FaultException<CustomFaultException<CustomFaultExceptionCode>>(
                            new CustomFaultException<CustomFaultExceptionCode>(
                            ErrorCode, ErrorMessage);

How to initialize the object at runtime?





Aucun commentaire:

Enregistrer un commentaire