#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 _empty = Array.AsReadOnly(new[] { true }); private readonly IList _transformFlags; public DynamicAttribute() { _transformFlags = _empty; } public DynamicAttribute(bool[] transformFlags) { if (transformFlags == null) { throw new ArgumentNullException("transformFlags"); } _transformFlags = transformFlags; } public IList TransformFlags { get { return _transformFlags; } } } } #endif