private static string GetBehaviorContents(string behaviorName)
{
ICodeBlock codeBlock = new CodeDocument();
string fileName = BehaviorFolder + behaviorName + ".cs";
if (File.Exists(fileName))
{
string behaviorContents = FileManager.FromFileText(fileName
);
codeBlock.Line(behaviorContents);
}
else
{
codeBlock.Line("// There is an invalid behavior reference to behavior " + behaviorName);
}
return codeBlock.ToString();
}