Skip to content

Variable name string #51

@Xian55

Description

@Xian55

Using UnityScript2CSharp_1.0.7002.42237

Original JS Code

function StringToBoolean(string : String) : boolean {
	return (string == '1');
}

Converted C# Code

public virtual bool StringToBoolean(string string)
{
    return string == "1";
}

Suggested Converted C# Code

public virtual bool StringToBoolean(string @string)
{
    return @string == "1";
}

Where the variable name conflicts with the C# primitive type

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