public T Read <T>(PinRequest request) { if (connectedOutputPin == null) { return((T)(constantValue ?? default(T))); } T val = (T)connectedOutputPin.GetOwnerValue(request); return(val); //if(val == default(T)) return default(T); }
public object GetOwnerValue(PinRequest request) { return(owner.GetPinValue(this, request)); }
public virtual object GetPinValue(Pin pin, PinRequest request) { return(null); //return default(T);//null; }