Merge pull request #796 from alesliehughes/master
[mono.git] / mcs / class / corlib / System.Runtime.CompilerServices / DateTimeConstantAttribute.cs
index fd7bf5d7e2f25d26a51ccb62e3ce97a72eea6c54..9575c3d16b2a446147c3fd852e4dbeb454dc431e 100644 (file)
 //
 
 using System;
+using System.Runtime.InteropServices;
 
 namespace System.Runtime.CompilerServices {
 
        [Serializable]
        [AttributeUsage (AttributeTargets.Field | AttributeTargets.Parameter,
                         Inherited=false)]
+       [ComVisible(true)]
        public sealed class DateTimeConstantAttribute : CustomConstantAttribute
        {
                long ticks;
@@ -44,6 +46,10 @@ namespace System.Runtime.CompilerServices {
                        this.ticks = ticks;
                }
 
+               internal long Ticks {
+                       get { return ticks; }
+               }
+
                public override object Value {
                        get { return ticks; }
                }