* AutomationProxyAttribute.cs
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / ComCompatibleVersionAttribute.cs
1 //
2 // System.Runtime.InteropServices.ComCompatibleVersionAttribute.cs
3 //
4 // Author:
5 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
6 //
7 // (C) 2003 Andreas Nahr
8 //
9
10 #if (NET_1_1)
11
12 namespace System.Runtime.InteropServices
13 {
14         [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, 
15                         Inherited = false)]
16         public sealed class ComCompatibleVersionAttribute : Attribute
17         {
18                 private int major;
19                 private int minor;
20                 private int build;
21                 private int revision;
22
23                 public ComCompatibleVersionAttribute (int major, int minor, int build, int revision)
24                 {
25                         this.major = major;
26                         this.minor = minor;
27                         this.build = build;
28                         this.revision = revision;
29                 }
30
31                 public int MajorVersion {
32                         get { return major; }
33                 }
34
35                 public int MinorVersion {
36                         get { return minor; }
37                 }
38
39                 public int BuildNumber {
40                         get { return build; }
41                 }
42
43                 public int RevisionNumber {
44                         get { return revision; }
45                 }
46         }
47 }
48
49 #endif