From 7ebae8306a9735be20db883023e0065336d92866 Mon Sep 17 00:00:00 2001 From: Rafael Teixeira Date: Mon, 31 May 2004 05:35:21 +0000 Subject: [PATCH] 2004-05-31 Rafael Teixeira * 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 --- .../Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog | 4 ++++ .../Microsoft.VisualBasic/Financial.cs | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog index d8cdaad22a6..41e1b7820b7 100644 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog +++ b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog @@ -1,3 +1,7 @@ +2004-05-31 Rafael Teixeira + * Financial.cs: + Correct IRR and MIRR method signatures and prevent public default constructor, all according to Class Status Page (corcompare) + 2004-04-26 Rafael Teixeira * DateAndTime.cs: Catch FormatException and rethrow as InvalidCastException in: diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Financial.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Financial.cs index 613c49ea716..5e14adb93b0 100644 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Financial.cs +++ b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Financial.cs @@ -8,13 +8,15 @@ // using System; +using Microsoft.VisualBasic.CompilerServices; namespace Microsoft.VisualBasic { - [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] -- 2.25.1