public void disableCycle(string cycleAlias) { var cycle = _cycles[cycleAlias] ?? throw new Exception("Cycle {0} does not exist".format(cycleAlias)); cycle.disable(); Alpharite.println("Disabled {0} successfully", cycleAlias); }
public RecursiveFieldResolve <TFrom, TTo> deep <TProxyType>(string proxyFieldName) where TProxyType : class { _field = _type.getField(proxyFieldName); _instance = _field.GetValue(_instance) as TProxyType; var cache = _type; _type = typeof(TProxyType); if (_instance == null) { Alpharite.println("Error while resolving field {0} (type {1}) inside class {2}", proxyFieldName, _type, cache); } return(this); }