btw is there a trick to getting Property changes recognised in the Constructor without an extra Init() function?
For example:
I have this property:
I need to take care ofPreferMediaFoundation in the constructor itself if possible. Otherwise I would need to add an extra constructor variable.
For example:
I have this property:
public bool PreferMediaFoundation
{
get { return preferMediaFoundation; }
set { preferMediaFoundation = value; }
}
The user calls it via:_waveStream = new AacFileReader(sAudioFile)
{
PreferMediaFoundation = true
};
... but "PreferMediaFoundation = true" is processed AFTER the constructor is done.I need to take care ofPreferMediaFoundation in the constructor itself if possible. Otherwise I would need to add an extra constructor variable.







