Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

fix attribute usage on ContentProperty #12412

Merged
merged 1 commit into from
Oct 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions Xamarin.Forms.Core/ContentPropertyAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@

namespace Xamarin.Forms
{
[AttributeUsage(AttributeTargets.Class, Inherited = true)]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class ContentPropertyAttribute : Attribute
{
internal static string[] ContentPropertyTypes = { "Xamarin.Forms.ContentPropertyAttribute", "System.Windows.Markup.ContentPropertyAttribute" };

public ContentPropertyAttribute(string name)
{
Name = name;
}
public ContentPropertyAttribute(string name) => Name = name;

public string Name { get; }
}
Expand Down