3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 namespace System.Runtime.CompilerServices
9 using System.Diagnostics.Contracts;
11 // We might want to make this inherited someday. But I suspect it shouldn't
13 [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = false)]
14 internal sealed class TypeDependencyAttribute: Attribute
16 #pragma warning disable 414
17 private string typeName;
18 #pragma warning restore
20 public TypeDependencyAttribute (string typeName)
22 if(typeName == null) throw new ArgumentNullException("typeName");
23 Contract.EndContractBlock();
24 this.typeName = typeName;