i need help fixing my code. here is the assignment: Make a classthat contains the following functions: isLong, isDouble,stringToLong, and stringToDouble. Each receives a string andreturns the appropriate type (bool, bool, long, and double).Duringthe rest of the semester you will paste this class into yourprograms and will no longer use any of the “standard” c# functionsto convert strings to numbers.
here is my code. it works for the long method but not thedouble:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Conversion
{
public class MyFunctions
{
public static bool IsLong(strings)
{
bool b =true;
int i;
PayPal Gateway not configured
PayPal Gateway not configured