Ok, this question has been answered in SO and here is the How to pass value to base constructor
public SMAPIException( string message) : base(message)
{
TranslationHelper instance = TranslationHelper.GetTranslationHelper; // singleton class
string localizedErrMessage = instance.GetTranslatedMessage(message, "" );
// code removed for brevity sake.
}
But suppose I want to manipulate the "message" info and then set the base class constructor, then how to do it.
Pseudo code below:
public SMAPIException( string message) : base(localizedErrMessage)
{
TranslationHelper instance = TranslationHelper.GetTranslationHelper; // singleton class
string localizedErrMessage = instance.GetTranslatedMessage(message, "" );
// code removed for brevity sake.
}
// So basically I want the localizedErrMessage to be sent instead of message to base class constructor, is it possible? Please guide me.