how to pass parameter between [Name]
please see
public static string GetNationalCode(string Name)
{
foreach(var User in Users)
{
if(User.Name== Name)
{
return User.Code;
}
}
return "";
}
I want to convert the top method to this code
public static string GetNationalCode[string Name]()
{
foreach(var User in Users)
{
if(User.Name== Name)
{
return User.Code;
}
}
return "";
}