public void RFC(RFCType type, object param, params object[] parameters) { for (int i = 0; i < mList.Count; ++i) { RFCObject obj = mList[i]; for (int j = 0; j < obj.mRFCs.Count; ++j) { CachedRFC rfc = obj.mRFCs[j]; if (rfc.type == type && rfc.Param == param) { if (obj.ProxyTarget != null) { rfc.func.Invoke(obj.ProxyTarget, parameters); } else { rfc.func.Invoke(obj, parameters); } } } } }
public RFC(RFCType type, object param = null) { Type = type; Param = param; }