Merge pull request #3522 from henricm/fix-csharp-compiler-path-windows
[mono.git] / mcs / class / referencesource / mscorlib / system / runtime / compilerservices / typedependencyattribute.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 namespace System.Runtime.CompilerServices 
7 {
8     using System;
9     using System.Diagnostics.Contracts;
10
11     // We might want to make this inherited someday.  But I suspect it shouldn't
12     // be necessary.
13     [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = false)]
14     internal sealed class TypeDependencyAttribute: Attribute    
15     {
16 #pragma warning disable 414
17         private string typeName;
18 #pragma warning restore
19
20         public TypeDependencyAttribute (string typeName)        
21         {
22             if(typeName == null) throw new ArgumentNullException("typeName");
23             Contract.EndContractBlock();
24             this.typeName = typeName;
25         }
26     }
27
28 }
29
30  
31