void AddCodeInterfaces()
 {
     foreach (IReturnType baseType in c.BaseTypes)
     {
         CodeInterface codeInterface = CodeInterface.CreateFromBaseType(projectContent, baseType);
         if (codeInterface != null)
         {
             AddCodeElement(codeInterface);
         }
     }
 }
Пример #2
0
 void CreateInterface(string code, string fileName = @"c:\projects\MyProject\interface.cs")
 {
     CreateCodeModel();
     AddCodeFile(fileName, code);
     interfaceTypeDefinition = assemblyModel.TopLevelTypeDefinitions.First().Resolve();
     codeInterface = new CodeInterface(codeModelContext, interfaceTypeDefinition);
 }
Пример #3
0
		void CreateInterface()
		{
			IClass c = helper.AddInterfaceToProjectContent("MyInterface");
			codeInterface = new CodeInterface(helper.ProjectContent, c);
		}
Пример #4
0
		void CreateInterface(string code)
		{
			AddCodeFile("interface.cs", code);
			ITypeDefinition typeDefinition = assemblyModel.TopLevelTypeDefinitions.First().Resolve();
			codeInterface = new CodeInterface(codeModelContext, typeDefinition);
		}