Ejemplo n.º 1
0
 public string StrokeLineJoin(CompositionStrokeLineJoin value)
 {
     const string typeName = nameof(CompositionStrokeLineJoin);
     return value switch
     {
         CompositionStrokeLineJoin.Miter => $"{typeName}{ScopeResolve}Miter",
         CompositionStrokeLineJoin.Bevel => $"{typeName}{ScopeResolve}Bevel",
         CompositionStrokeLineJoin.Round => $"{typeName}{ScopeResolve}Round",
         CompositionStrokeLineJoin.MiterOrBevel => $"{typeName}{ScopeResolve}MiterOrBevel",
         _ => throw new InvalidOperationException(),
     };
 }
Ejemplo n.º 2
0
        public string StrokeLineJoin(CompositionStrokeLineJoin value)
        {
            const string typeName = nameof(CompositionStrokeLineJoin);

            switch (value)
            {
            case CompositionStrokeLineJoin.Miter: return($"{typeName}{ScopeResolve}Miter");

            case CompositionStrokeLineJoin.Bevel: return($"{typeName}{ScopeResolve}Bevel");

            case CompositionStrokeLineJoin.Round: return($"{typeName}{ScopeResolve}Round");

            case CompositionStrokeLineJoin.MiterOrBevel: return($"{typeName}{ScopeResolve}MiterOrBevel");

            default: throw new InvalidOperationException();
            }
        }