2013-11-21 31 views
-1

我必须使用NPV函数进行财务计算。我做了一些研究,但我很困惑如何将它添加到我的C#项目。如何在c#中使用Financial.NPV()函数

有人说, Just add Financial.dll to the references in your project. The functions are provided as static methods on a Financial class in the System.Numerics namespace

我添加了System.Numerics命名空间,但我无法达到NPV功能。我在哪里可以找到Financial.dll文件?

感谢

+0

检查项目属性,看看该项目的目标是到不同版本.net框架(例如客户端配置文件)。 – sthotakura

回答

2

接入它,就像任何其他类包含的功能:

double npvResult = Financial.Npv(rate, flows); 

(从here拉动)