8 changed files with 85 additions and 2 deletions
@ -0,0 +1,23 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Avalonia.Metadata; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Defines how compiler should split avalonia list string value before parsing individual items.
|
||||
|
/// </summary>
|
||||
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] |
||||
|
public sealed class AvaloniaListAttribute : Attribute |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Separator used to split input string.
|
||||
|
/// Default value is ','.
|
||||
|
/// </summary>
|
||||
|
public string[]? Separators { get; init; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Split options used to split input string.
|
||||
|
/// Default value is RemoveEmptyEntries with TrimEntries.
|
||||
|
/// </summary>
|
||||
|
// StringSplitOptions.TrimEntries = 2, but only on net6 target.
|
||||
|
public StringSplitOptions SplitOptions { get; init; } = StringSplitOptions.RemoveEmptyEntries | (StringSplitOptions)2; |
||||
|
} |
||||
@ -1 +1 @@ |
|||||
Subproject commit 5d1025f30d0ed6d8f419d82959c148276301f393 |
Subproject commit e5254eb1b2017f78a92acd466c8fa1e47401056b |
||||
Loading…
Reference in new issue