Merge pull request #1407 from chrisvire/bug-24587
[mono.git] / mcs / class / corlib / System.Runtime.CompilerServices / DateTimeConstantAttribute.cs
index f8537b8a60e408f50afd8295a6a1d908e52f5d4a..9575c3d16b2a446147c3fd852e4dbeb454dc431e 100644 (file)
@@ -36,9 +36,7 @@ namespace System.Runtime.CompilerServices {
        [Serializable]
        [AttributeUsage (AttributeTargets.Field | AttributeTargets.Parameter,
                         Inherited=false)]
-#if NET_2_0
        [ComVisible(true)]
-#endif
        public sealed class DateTimeConstantAttribute : CustomConstantAttribute
        {
                long ticks;
@@ -48,6 +46,10 @@ namespace System.Runtime.CompilerServices {
                        this.ticks = ticks;
                }
 
+               internal long Ticks {
+                       get { return ticks; }
+               }
+
                public override object Value {
                        get { return ticks; }
                }