Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not run the code #8

Open
songyanglihua opened this issue May 20, 2019 · 1 comment
Open

Can not run the code #8

songyanglihua opened this issue May 20, 2019 · 1 comment

Comments

@songyanglihua
Copy link

I download the code.
Open src with VS2019.
When I Run Code.
private static string GetValue(string key, string cfg)
{
// Find start of 'Key'
int i = cfg.IndexOf(key);
if (i >= 0)
{
i = cfg.IndexOf('=', i);
int z = cfg.IndexOf(Environment.NewLine, i + 1);

            // Get only 'Value' text
            return cfg.Substring(i + 1, z - i).Trim();
        }

        return null;
    }

It's wrong.why?I want to run code on my computer.what should i do?

@intolerance
Copy link
Contributor

Need more clarification here on what the actual problem is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants