Problem
- Converting IValueSet results to enumerations
Proposal
Code Block | ||||
---|---|---|---|---|
| ||||
interface IExchangeAdaptor { IExchangeItem ExchangeItemOriginal { set; get; } IExchangeItem ExchangeItemNew { get; } object Adapt(IValueSet value); } // Optional Extension for ILinkableComponent interface IExchangeAdaptable { int SuggestedAdaptorsCount { get; } IExchangeAdaptor AdaptorSugestion(int index); } |
Code Block | ||||
---|---|---|---|---|
| ||||
class ILinkableComponent { ...... object GetValues(ITime time, string linkID); ...... } |
Example
Code Block | ||||
---|---|---|---|---|
| ||||
enum ReedGrowth { High = 0, Medium, Low, } |
...