public static AdTypeToString ( AdType adType ) : string | ||
adType | AdType | |
return | string |
public static string AdTypeToString(AdType adType)
{
switch (adType)
{
case AdType.ForSale:
return "For Sale";
case AdType.Wanted:
return "Wanted";
default:
return "(other)";
}
}
OutputFormatting::AdTypeToString ( object adType ) : string |