New to programming my user name sums it all up!!!
trying to creat a DLL(in C#) I'm told this code below will do the trick, but it doesn't build!! can anybody out there tell me why?

using System;
using System.Collections.Generic;
using System.Text;

namespace neilsuperDLL
{
    public class calc
    {
       public float Calculate(float a, float b, int func)
        {
           float f; 
        switch(func) 
        {


        case1:
        f = a + b;
        break;

        case 2:
        f = a - b;
        break;

        Case 3:
        f = a * b;
        break;

        case 4:
        f = a / b;
        break;

        default:
        f =0.0F;
        break;
    }
    return f;

        }


    }
}

Recommended Answers

All 2 Replies

Welcome aboard...you'll need to post your question the the C# section..

Welcome!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.