public static string ToCode(this Publicity publicity, string before, string after)
{
switch (publicity) {
case Publicity.Private:
return before + "private" + after;
case Publicity.Protected:
return before + "protected" + after;
case Publicity.Public:
return before + "public" + after;
default:
return "";
}
}