protected virtual IInterface CreateInterface(IInterfaceToken interfaceToken) { //Edited: you can now access the First/Second Number from the Interface Token and use it to create the Instance of your interface: int firstNumber = interfaceToken.FirstNumber; int secondNumber = interfaceToken.SecondNumber; return(new Interface(interfaceToken.Value)); }
protected virtual IInterface CreateInterface(IInterfaceToken interfaceToken) { return(new Interface(interfaceToken.Value)); }