private static void GetShapeType(PlacementShapeLocation shapeLocation, out string shapeType, out string differentiator) { differentiator = string.Empty; shapeType = shapeLocation.ShapeType; var dashIndex = shapeType.LastIndexOf('-'); if (dashIndex <= 0 || dashIndex >= shapeType.Length - 1) { return; } differentiator = shapeType.Substring(dashIndex + 1); shapeType = shapeType.Substring(0, dashIndex); }
private static void GetShapeType(PlacementShapeLocation shapeLocation, out string shapeType, out string differentiator) { differentiator = string.Empty; shapeType = shapeLocation.ShapeType; var dashIndex = shapeType.LastIndexOf('-'); if (dashIndex <= 0 || dashIndex >= shapeType.Length - 1) return; differentiator = shapeType.Substring(dashIndex + 1); shapeType = shapeType.Substring(0, dashIndex); }