public static Rect ResizeToFill(Rect parentRect, Size childSize) { Rect fill = RectangleUtils.ResizeToFill(RectangleUtils.GetSize(parentRect), childSize); fill.X += parentRect.X; fill.Y += parentRect.Y; return(fill); }
public static Rect ResizeToFit(Rect parentRect, Size childSize) { Rect fit = RectangleUtils.ResizeToFit(RectangleUtils.GetSize(parentRect), childSize); // ISSUE: explicit reference operation // ISSUE: variable of a reference type // ISSUE: explicit reference operation double num1 = fit.X + parentRect.X; fit.X = num1; // ISSUE: explicit reference operation // ISSUE: variable of a reference type // ISSUE: explicit reference operation double num2 = fit.Y + parentRect.Y; fit.Y = num2; return(fit); }