FlatRedBall.Glue.BehaviorManager.GetBehaviorContents C# (CSharp) Method

GetBehaviorContents() private static method

private static GetBehaviorContents ( string behaviorName ) : string
behaviorName string
return string
		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();
		}