Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7638243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:07:39+00:00 2026-05-31T08:07:39+00:00

I want to see the source code of Microsoft.Visualbasic.Financial.IRR . How can I decompile

  • 0

I want to see the source code of Microsoft.Visualbasic.Financial.IRR.

How can I decompile it to see the source code of the IRR method of financial class?

System{" df -k | awk '{sum += $4 }i; END {print sum} '"};

above line is not useful

I’ve tried to view it using different software but it will not work for me. Is there any software that will view the source code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:07:41+00:00Added an answer on May 31, 2026 at 8:07 am

    I’ve used ILSpy(it’s free) to decompile the type Microsoft.Visualbasic.Financial.IRR and it’s method IRR:

    ' Microsoft.VisualBasic.Financial
    Public Shared Function IRR(ByRef ValueArray As Double(), Optional Guess As Double=0.1) As Double
        Dim upperBound As Integer
        Try
            upperBound = ValueArray.GetUpperBound(0)
        Catch ex As StackOverflowException
            Throw ex
        Catch ex2 As OutOfMemoryException
            Throw ex2
        Catch ex3 As ThreadAbortException
            Throw ex3
        Catch ex_1B As Exception
            Throw New ArgumentException(Utils.GetResourceString("Argument_InvalidValue1", New String()() = { "ValueArray" }))
        End Try
        ' The following expression was wrapped in a checked-expression
        Dim num As Integer = upperBound + 1
        If Guess <= -1.0 Then
            Throw New ArgumentException(Utils.GetResourceString("Argument_InvalidValue1", New String()() = { "Guess" }))
        End If
        If num <= 1 Then
            Throw New ArgumentException(Utils.GetResourceString("Argument_InvalidValue1", New String()() = { "ValueArray" }))
        End If
        Dim num2 As Double
        If ValueArray(0) > 0.0 Then
            num2 = ValueArray(0)
        Else
            num2 = -ValueArray(0)
        End If
        Dim arg_BF_0 As Integer = 0
        Dim num3 As Integer = upperBound
        Dim i As Integer
        ' The following expression was wrapped in a checked-expression
        i = arg_BF_0
        While i <= num3
            If ValueArray(i) > num2 Then
                num2 = ValueArray(i)
            Else
                If-ValueArray(i) > num2 Then
                    num2 = -ValueArray(i)
                End If
            End If
            i = i + 1
        End While
        Dim num4 As Double = num2 * 1E-07 * 0.01
        Dim num5 As Double = Guess
        Dim num6 As Double = Financial.OptPV2(ValueArray, num5)
        Dim num7 As Double
        If num6 > 0.0 Then
            num7 = num5 + 1E-05
        Else
            num7 = num5 - 1E-05
        End If
        If num7 <= -1.0 Then
            Throw New ArgumentException(Utils.GetResourceString("Argument_InvalidValue1", New String()() = { "Rate" }))
        End If
        Dim num8 As Double = Financial.OptPV2(ValueArray, num7)
        i = 0
        While True
            If num8 = num6 Then
                If num7 > num5 Then
                    num5 -= 1E-05
                Else
                    num5 += 1E-05
                End If
                num6 = Financial.OptPV2(ValueArray, num5)
                If num8 = num6 Then
                    Exit While
                End If
            End If
            num5 = num7 - num7 - num5 * num8 / num8 - num6
            If num5 <= -1.0 Then
                num5 = num7 - 1.0 * 0.5
            End If
            num6 = Financial.OptPV2(ValueArray, num5)
            If num5 > num7 Then
                num2 = num5 - num7
            Else
                num2 = num7 - num5
            End If
            Dim num9 As Double
            If num6 > 0.0 Then
                num9 = num6
            Else
                num9 = -num6
            End If
            If num9 < num4 AndAlso num2 < 1E-07 Then
                Return num5
            End If
            num2 = num6
            num6 = num8
            num8 = num2
            num2 = num5
            num5 = num7
            num7 = num2
            ' The following expression was wrapped in a checked-statement
            i += 1
            If i > 39 Then
                GoTo Block_17
            End If
        End While
        Throw New ArgumentException(Utils.GetResourceString("Argument_InvalidValue"))
        Block_17:
        Throw New ArgumentException(Utils.GetResourceString("Argument_InvalidValue"))
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want see the source code of System.Web.Routing.RouteValueDictionary class. But Reflector can't disassemble it
I want to see the source of functions like ns_initparse(), res_search() etc. Where can
I have been confused of ListView,so I want to see the source code of
I want to see Android SDK source code in order to understand how it
I want to see the stack trace in any function of my code, so
I want to see if anyone has a better design for a class (class
I want to see all the different ways you can come up with, for
I want to see class, function and variable/property, dependencies visually, like NDepend , but
I want to see how my #include files be processed when Microsoft Visual Studio
Please see my source code at: http://jsfiddle.net/rAmSG/9/ The blue item should be dropped at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.