20 строки
469 B
C#
20 строки
469 B
C#
using System;
|
|
|
|
namespace Xamarin.Forms
|
|
{
|
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
|
|
public class ExportEffectAttribute : Attribute
|
|
{
|
|
public ExportEffectAttribute(Type effectType, string uniqueName)
|
|
{
|
|
if (uniqueName.Contains("."))
|
|
throw new ArgumentException("uniqueName must not contain a .");
|
|
Type = effectType;
|
|
Id = uniqueName;
|
|
}
|
|
|
|
internal string Id { get; private set; }
|
|
|
|
internal Type Type { get; private set; }
|
|
}
|
|
} |