Please help me how can i creat a class and use in windows application for Studen Result card .I want type below code in class and want to use in windows application for student Grade
private string MethodGrade(float Avrage)
{
string Grade;
if (Avrage > 91)
{
Grade = "A+";
}
else if (Avrage > 81)
{
Grade = "A";
}
else if (Avrage > 71)
{
Grade = "B";
}
else if (Avrage > 61)
{
Grade = "C";
}
else if (Avrage > 51)
{
Grade = "D";
}
else
{
Grade = "F";
}
return Grade;
}