网上演练
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1002 B

#if NET20 || NET30 || NET35 || !NET_4_6
using System.Collections.Generic;
using LinqInternal.Core;
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
public sealed class DynamicAttribute : Attribute
{
private static readonly IList<bool> _empty = Array.AsReadOnly(new[] { true });
private readonly IList<bool> _transformFlags;
public DynamicAttribute()
{
_transformFlags = _empty;
}
public DynamicAttribute(bool[] transformFlags)
{
if (transformFlags == null)
{
throw new ArgumentNullException("transformFlags");
}
_transformFlags = transformFlags;
}
public IList<bool> TransformFlags
{
get { return _transformFlags; }
}
}
}
#endif