The application user interface displays part names or color names in many plases as ‘## Name ##’.
You need to provide a method named FormattedName() to format part names and color names throughout the
application. What should you do?
A.
Add the following code segment to the ExtensionMethods class in ExtensionMethods.cs:
public static string FormattedName (this IName entity){
return string.Format(“## {0} ##”, entity.Name)
}
B.
Add the following code segment to the ExtensionMethods class in ExtensionMethods.cs:
public static string FormattedName (this Color entity){
return string.Format(“## {0} ##”, entity.Name)
}
C.
Add the following code segment to the ExtensionMethods class in ExtensionMethods.cs:
public static string FormattedName (this Part entity){
return string.Format(“## {0} ##”, entity.Name)
}
D.
Add the following code segmend to the Color class in Color.cs:
public string FormattedName(){
return string.Format(“## {0} ##”, this.Name);
}
E.
Add the following code segmend to the Part class in Part.cs:
public string FormattedName(){
return string.Format(“## {0} ##”, this.Name);
}