G
Guest
Hello.
Are there any resources out there (because I couldn´t find any)
concerning the usage of assemblies with different features in each version?
In other words:
I´ve got one assembly A that is using assembly B - B exists in different
versions. Now I want to make it possible for A to ask B what features it
supports or what data it can give to A.
Something like:
if (B.supports(detailedData))
useDetailedData();
else if (B.supports(lessDetailedData))
useLessDetailedData();
else
useData();
An older version of A may ask only the following:
if (B.supports(lessDetailedData))
useLessDetailedData();
else
useData();
I´ve tried something like this but it didn´t work for me!
Puh - hope I could make myself clear.
Thanks for any information!
Greetings,
Tim.
Are there any resources out there (because I couldn´t find any)
concerning the usage of assemblies with different features in each version?
In other words:
I´ve got one assembly A that is using assembly B - B exists in different
versions. Now I want to make it possible for A to ask B what features it
supports or what data it can give to A.
Something like:
if (B.supports(detailedData))
useDetailedData();
else if (B.supports(lessDetailedData))
useLessDetailedData();
else
useData();
An older version of A may ask only the following:
if (B.supports(lessDetailedData))
useLessDetailedData();
else
useData();
I´ve tried something like this but it didn´t work for me!
Puh - hope I could make myself clear.
Thanks for any information!
Greetings,
Tim.