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