AddNewRow.DemoCommon.FindLicenseKey C# (CSharp) Method

FindLicenseKey() public static method

Finds the license key from the Common folder.
public static FindLicenseKey ( ) : string
return string
        public static string FindLicenseKey()
        {
            string licenseKeyFile = "..\\Common\\SyncfusionLicense.txt";
            for (int n = 0; n < 20; n++)
            {
                if (!System.IO.File.Exists(licenseKeyFile))
                {
                    licenseKeyFile = @"..\" + licenseKeyFile;
                    continue;
                }
                return System.IO.File.ReadAllText(licenseKeyFile);
            }
            return string.Empty;
        }
    }
DemoCommon