ContextDataProviderAttribute
using System;
namespace Autodesk.DesignScript.Runtime
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
public sealed class ContextDataProviderAttribute : Attribute
{
private Func<bool> mCapturesData = () => true;
public Type Type { get; set; }
public bool CapturesData => mCapturesData();
public ContextDataProviderAttribute(Type dataProviderType, Func<bool> capturesData)
{
Type = dataProviderType;
if (capturesData != null)
mCapturesData = capturesData;
}
public ContextDataProviderAttribute(Type dataProviderType)
{
Type = dataProviderType;
}
}
}