2004-05-31 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
authorRafael Teixeira <monoman@gmail.com>
Mon, 31 May 2004 05:35:21 +0000 (05:35 -0000)
committerRafael Teixeira <monoman@gmail.com>
Mon, 31 May 2004 05:35:21 +0000 (05:35 -0000)
* Financial.cs:
Correct IRR and MIRR method signatures and prevent public default constructor, all according to Class Status Page (corcompare)

svn path=/trunk/mcs/; revision=28530

mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog
mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Financial.cs

index d8cdaad22a625a16e8791a60083d28c20eec3079..41e1b7820b7bec6ff81eb6cff98652b022dd79e2 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-31     Rafael Teixeira <rafaelteixeirabr@hotmail.com>
+       * Financial.cs:
+               Correct IRR and MIRR method signatures and prevent public default constructor, all according to Class Status Page (corcompare)
+\r
 2004-04-26     Rafael Teixeira <rafaelteixeirabr@hotmail.com>\r
        * DateAndTime.cs:
                Catch FormatException and rethrow as InvalidCastException in:
index 613c49ea71661464dd4ba347e209d625d727f2bc..5e14adb93b0176d1a77d0cb677bc87f24db4869f 100644 (file)
@@ -8,13 +8,15 @@
 //
 
 using System;
+using Microsoft.VisualBasic.CompilerServices;
 
 namespace Microsoft.VisualBasic \r
 {
-       [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] 
+       [StandardModule] 
        sealed public class Financial {
                // Declarations
                // Constructors
+               private Financial() {} // prevent public default constructor
                // Properties
                // Methods
                [MonoTODO]
@@ -24,9 +26,9 @@ namespace Microsoft.VisualBasic
                [MonoTODO]
                public static System.Double IPmt (System.Double Rate, System.Double Per, System.Double NPer, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); }
                [MonoTODO]
-               public static System.Double IRR (ref System.Double[] ValueArray, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0.1)] ref System.Double Guess) { throw new NotImplementedException (); }
+               public static System.Double IRR (ref System.Double[] ValueArray, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0.1)] System.Double Guess) { throw new NotImplementedException (); }
                [MonoTODO]
-               public static System.Double MIRR (ref System.Double[] ValueArray, ref System.Double FinanceRate, ref System.Double ReinvestRate) { throw new NotImplementedException (); }
+               public static System.Double MIRR (ref System.Double[] ValueArray, System.Double FinanceRate, System.Double ReinvestRate) { throw new NotImplementedException (); }
                [MonoTODO]
                public static System.Double NPer (System.Double Rate, System.Double Pmt, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); }
                [MonoTODO]