Bungie.Tests.Program.GetApiKey C# (CSharp) Метод

GetApiKey() приватный статический Метод

1) If you do not have an ApiKey, obtain one from https://www.bungie.net/en/User/API"/ 2) If you're using source control for this project, configure it to exclude *.secret.config. 3) Create a file in the project folder with the name appSettings.secret.config. 4) Copy the appSettings section from App.config and paste it into the new file. 5) Replace the value of the ApiKey entry with your api key.
private static GetApiKey ( ) : string
Результат string
        private static string GetApiKey()
        {
            var settings = new AppSettingsReader();
            var value = settings.GetValue("ApiKey", typeof(string));
            return value == null ? String.Empty : value.ToString();
        }
    }