How can I expose delegate through via a property? I am exposing a delegate which is a member of a third party class through my class.
public CardInformationAvailable OnDataRecieve //CardInformationAvailable is a delegate type
{
set
{
_cardReaderBase.OnDataReady += value; // OnDataReady is a delegate of type
//CardInformationAvailable
// Where will i call -=value?
}
}
Not 100% sure on the question, but you can wrap events in this way if you want to expose via your class. But as others have mentioned, you could just add the event directly to _cardReaderBase?