OneComputeWorker\Calculator.cs

namespace OneComputeWorker
{
    /// <summary>
    /// A very basic calculator.
    /// </summary>
    /// <remarks>
    /// This calculator represents an existing library with business logic that you would like to utilize in OneCompute.
    /// </remarks>
    public class Calculator
    {
        /// <summary>
        /// Calculates the square of the specified number.
        /// </summary>
        /// <param name="number">The number to be squared.</param>
        /// <returns></returns>
        public int Square(int number)
        {
            return number * number;
        }
    }
}
  • Edit this page
In this article
Back to top Copyright © DNV AS. All rights reserved.