internal static VariableManager Compute <T>(FieldManager <T> field, LocalBuilder value, OpCode code) { field.Output(); field.Emit(OpCodes.Ldloc_S, value); field.Emit(code); field.Input(); return(field); }
internal static FieldBoolean Comparer <T>(FieldManager <T> field, T value, params OpCode[] codes) { var res = field.NewBoolean(); field.Output(); foreach (var code in codes) { field.EmitValue(value); field.Emit(code); } field.Emit(OpCodes.Stloc_S, res); return(res); }
internal static FieldManager <T> Compute <T, T1>(FieldManager <T> field, FieldManager <T1> value, OpCode code) { field.Output(); value.Output(); field.Emit(code); field.Input(); return(field); }