Class file example in asp.net c#

a simple class file CalculatorClass.cs
CalculatorClass.cs

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for CalculatorClass
/// </summary>
public class CalculatorClass 
{
    public int AddMethod(int ArgumentA, int ArgumentB) 
    {
        return (ArgumentA + ArgumentB);
    }

    public int SubtractMethod(int ArgumentA, int ArgumentB)
    {
        return (ArgumentA - ArgumentB);
    }

    public int MultiplyMethod(int ArgumentA, int ArgumentB)
    {
        return (ArgumentA * ArgumentB);
    }

    public int DevideMethod(int ArgumentA, int ArgumentB)
    {
        return (ArgumentA / ArgumentB);
    }

    public int SquareMethod(int ArgumentA)
    {
        return (ArgumentA * ArgumentA);
    }
}
More asp.net examples