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 8353943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:24:34+00:00 2026-06-09T09:24:34+00:00

Inspiried by this example I decided to expand the Factorial class. using System; using

  • 0

Inspiried by this example I decided to expand the Factorial class.

using System;
using System.Numerics;

namespace Functions
{
    public class Factorial
    {
        public static BigInteger CalcRecursively(int number)
        {
            if (number > 1)
                return (BigInteger)number * CalcRecursively(number - 1);
            if (number <= 1)
                return 1;

            return 0;
        }

        public static BigInteger Calc(int number)
        {
            BigInteger rValue=1;

            for (int i = 0; i < number; i++)
            {
                rValue = rValue * (BigInteger)(number - i);                
            }

            return rValue;

        }      
    }
}

I’ve used System.Numerics, which isn’t included by default. Therefore, the command
csc /target:library /out:Functions.dll Factorial.cs DigitCounter.cs outputs:

Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

Factorial.cs(2,14): error CS0234: The type or namespace name 'Numerics' does not
        exist in the namespace 'System' (are you missing an assembly reference?)
DigitCounter.cs(2,14): error CS0234: The type or namespace name 'Numerics' does
        not exist in the namespace 'System' (are you missing an assembly
        reference?)
Factorial.cs(8,23): error CS0246: The type or namespace name 'BigInteger' could
        not be found (are you missing a using directive or an assembly
        reference?)
Factorial.cs(18,23): error CS0246: The type or namespace name 'BigInteger' could
        not be found (are you missing a using directive or an assembly
        reference?)
DigitCounter.cs(8,42): error CS0246: The type or namespace name 'BigInteger'
        could not be found (are you missing a using directive or an assembly
        reference?)

OK. I’am missing an assembly reference. I thought “It must be simple. On the whole system should be two System.Numerics.dll files – what I need is to add to the command /link:[Path to the x86 version of System.Numerics.dll] “. The searching results has frozen my soul:enter image description here

As you can see(or not) there are many more files than I predicted! Moreover, they differ by the size and content. Which one should I include? Why there are five files, although only two have the point of existence? Is the /link:command correct? Or maybe am I totally wrong with my thinking track?

  • 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-06-09T09:24:36+00:00Added an answer on June 9, 2026 at 9:24 am

    I’ve generally found that using

    /r:System.Numerics.dll
    

    lets the compiler just find the assembly in the GAC, which is generally the way you want it. (Certainly it was fine the other day when I needed exactly System.Numerics for a console app…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a simple application inspired by this example in order to test all
Inspired by this topic , I decided to write a simple program that does
inspired by this answer I'm trying to map a property on a model class
Inspired by this answer , I tried next example : #include <map> #include <string>
Inspired by this question , I'd like to know whether there is any trick
Inspired by this discussion , after some googling I wasn't able to find an
This question is inspired by this question . I'd like to get a dictionary
My question is partially inspired by this article written by Eric Lippert: http://blogs.msdn.com/ericlippert/archive/2009/10/19/what-is-this-thing-you-call-thread-safe.aspx Using
Note: this was inspired by WebBrowser Event Properties? Why am I able to access
This is inspired by/taken from this thread: http://www.allegro.cc/forums/thread/603383 The Problem Assume the user gives

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.