I am trying to setup interface method that will give version number:
var versionNumber = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
I am not sure how to implement this in an interface, so that the inheriting class can get the version number?
implementation:
I made the class internal, because it doesn’t need to be externally creatable:
Since the interface is public, external users will be able to call ‘GetVersion’ on it even though the implementation is private to the assembly.