You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Currently we have all interfaces working only in a non-generic way. It would be useful to have an additional / alternative version which uses generics, e.g.:


public interface IArgument<T>
{
T Value

Unknown macro: { get; set; }

T DefaultValue

Unknown macro: { get; }

IEnumerable<T> GetPossibleValues

...
}

public interface IExchangeItem<T>
{
...
}

This may simplify usage / performance in many cases.

We should probably to it when C#, Java, C++, Python, FORTRAN versions of the OpenMI standard will appear since implementation of generics is not the same on different platforms and in some implementations need to be skipped at all. Not preventing use of it in different languages.

  • No labels