Skip to content

Can not run the code #8

@songyanglihua

Description

@songyanglihua

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions