using System;
using System.Data.Sql;
using System.Data.SqlTypes;
using System.Reflection;
using System.Runtime.CompilerServices;

namespace MetricFunctions
{

public class MetricProcs
{
  public static void AddToTemp(ref SqlDouble thetemp, SqlDouble theadder)
  {
     thetemp += theadder;
  }

  public static void AddAndReturnBoth(SqlDouble thetemp, SqlDouble theadder, ref SqlDouble result_f, ref SqlDouble result_c)
  {
     result_f = thetemp + theadder;
     result_c = MetricConverter.FahrenheitToCentigrade(result_f);
  }

  public static void AddAndReturnBothOut(SqlDouble thetemp, SqlDouble theadder, out SqlDouble result_f, out SqlDouble result_c)
  {
     result_f = thetemp + theadder;
     result_c = MetricConverter.FahrenheitToCentigrade(result_f);
  }
}

}
