Пример #1
0
		void CreateCodeTypeRef2()
		{
			typeRef = new CodeTypeRef2(classHelper.ProjectContentHelper.ProjectContent, parent, helper.ReturnType);
		}
Пример #2
0
        void CreateCodeTypeRef2(string code)
        {
            AddCodeFile("class.cs", code);
            IMethod method = assemblyModel
                .TopLevelTypeDefinitions
                .First()
                .Members
                .First()
                .Resolve() as IMethod;

            parent = new CodeFunction2(codeModelContext, method);
            typeRef = parent.Type as CodeTypeRef2;
        }