public UnaryOpIn(IIn <T> source, Func <Expression, Expression> op, Func <T, T> elementOperator) { _source = source; _operator = op; _elementOperator = op.Compile <T, T>(); _changedEvent = EventHelper.CreateChangedEvent(this, source.ChangedEvent); }
public ProcessBlock(AbsTimeGenerator _timeGenerator, IOut _queue, IIn _nextBlock) { m_isRequestHere = false; m_timeGenerator = _timeGenerator; m_queue = _queue; m_nextBlock = _nextBlock; }
public virtual void AddChild(IIn <C> node) { if (this._children.Count > 0) { throw new NotSupportedException("This node accepts only one child, there is already one child added."); } this._children.Add(node); }
public static int Main() { IIn <object> test = null; Foo(test); return(0); }
public override void AddChild(IIn <T> node) { if (!this.children.IsNullOrEmpty()) { throw new TreeBuilderException("ActionNode can have only one child", this); } base.AddChild(node); }
public BinaryOpIn(IIn <T> left, IIn <T> right, Func <Expression, Expression, Expression> op, Func <T, T, T> elementOperator) { _left = left; _right = right; _operator = op; _elementOperator = elementOperator; _changedEvent = EventHelper.CreateChangedEvent(this, left.ChangedEvent | right.ChangedEvent); }
public static void Entry() { IOut <string> s = new BlaOut <string>() { field = "123" }; IOut <object> o = s; object res = o.Foo(); IIn <object> o2 = new BlaIn <object>(); IIn <string> s2 = o2; s2.Foo("hello"); IInOut <object, string> i0 = null; IInOut <string, object> i1 = i0; i1.FooIn("a"); object o3 = i1.FooOut(); }
static void Main(string[] args) { var parenRef = new GenericClass <Parent>(); var childRef = new GenericClass <Child>(); IIn <Child> Ci = parenRef; I <Parent> p = parenRef; IOut <Parent> Po = childRef; I <Child> c = childRef; DOut <Parent> DGetP = GetParent; DOut <Child> DGetC = GetChild; DGetP = DGetC; DIn <Parent> DSetP = SetParent; DIn <Child> DSetC = SetChild; DSetC = DSetP; }
public StandartQueue(IIn _statBlock) { m_statBlock = _statBlock; m_capacity = 10; m_full = 0; }
static void Foo(IIn <string> f) { }
public override void AddChild(IIn <T> node) { throw new NotSupportedException("AddChild method is forbiden for a DecisionNode, instead use SetNoChild or SetYesChild."); }
static void Foo(IIn <Test> f) { }
public void SetNoChild(IIn <T> node) { this.noChild = node; }
public virtual void AddChild(IIn <C> node) { this.children.Add(node); }
public void SetEndNode <T>(IIn <T> node) where T : class { this.end = node; }
public void SetNextBlock(IIn _block) { m_in = _block; }
public void SetYesChild(IIn <T> node) { this.yesChild = node; }
public static EventSource CreateChangedEvent <T>(IIn <T> provider, EventSource eventSource) { return(new PredicatedEvent(null, eventSource, () => !EqualityComparer <T> .Default.Equals(provider.Pre, provider.Cur), null)); }
public Generator(AbsTimeGenerator _timeGenerator, IIn _nextBlock) { m_nextBlock = _nextBlock; m_timeGenerator = _timeGenerator; m_time = m_timeGenerator.Next(); }
public void SetStartNode <T>(IIn <T> startNode) where T : class { this.root = startNode; }