void AddClassToCompilationUnit(string namespaceName, string className)
        {
            var classHelper = new ClassHelper();

            classHelper.CreatePublicClass(className);
            classHelper.AddNamespaceUsingScopeToClass(namespaceName);
            classHelper.AddClassNamespace(namespaceName);
            compilationUnitHelper.AddClass(classHelper.Class);
        }
 void CreateClass(string name)
 {
     helper.CreatePublicClass(name);
     helper.SetClassType(ICSharpCode.SharpDevelop.Dom.ClassType.Class);
 }
 void AddUnderlyingClassToReturnType(string fullyQualifiedName)
 {
     classHelper.CreatePublicClass(fullyQualifiedName);
     helper.AddUnderlyingClass(classHelper.Class);
 }
예제 #4
0
 void CreatePublicClass(string name)
 {
     helper.CreatePublicClass(name);
     CreateClass();
 }
예제 #5
0
 void CreatePublicCSharpClass()
 {
     classHelper.CreatePublicClass("MyClass");
     classHelper.ProjectContentHelper.ProjectContentIsForCSharpProject();
 }