public IMessage <U> Convert <U>() { if (IsError) { return(FromError <U>(error)); } else { return(FromPayload(payload.Convert <U>())); } }
protected Lazy(IBonded bonded) { Debug.Assert(!(bonded is Bonded <T>)); var lazy = bonded as Lazy <T, R>; if (lazy != null) { instance = lazy.instance; } this.bonded = bonded.Convert <T>(); }
public IBonded <U> Convert <U>() { return(bonded.Convert <U>()); }
public Lazy(IBonded bonded) { this.bonded = bonded.Convert <T>(); }
public IBonded <U> Convert <U>() { return(_instance.Convert <U>()); }