public RdpFlip(RdpBinaryFunction func, RdpPattern p) { this.func = func; this.arg = p; }
internal RdpFlip MakeFlip (RdpBinaryFunction func, RdpPattern p) { if (patternPool == null) // could be null for RdpElement etc. patternPool = new Hashtable (); // Though this method takes function argument, all // p1 callers have different pattern types, so we don't // have to distinguish tables by func. Hashtable table = patternPool [func] as Hashtable; if (table == null) { table = new Hashtable (); patternPool [func] = table; } RdpFlip f = table [p] as RdpFlip; if (f != null) return f; f = new RdpFlip (func, p); table [p] = f; return f; }
public RdpFlip (RdpBinaryFunction func, RdpPattern p) { this.func = func; this.arg = p; }