public static CsMethod WithLeftRightArguments(this CsMethod method, string leftType, string rightType, string leftName = "left", string rightName = "right") { method.AddParam(leftName, leftType); method.AddParam(rightName, rightType); return(method); }
public static void WithAddParams(CsMethod method, string type, int dimension) { method.AddParam("obj", NestedEnumerable(type, dimension)); method.AddParam("copy", "bool").ConstValue = "true"; method.AddParam("order", "NumpyArrayOrder").ConstValue = "NumpyArrayOrder.K"; }