void AddPublicMethod(string name, string type)
 {
     codeFunction = codeGenerator.AddPublicMethod(name, type);
 }
Пример #2
0
        public global::EnvDTE.CodeFunction AddFunction(string name, global::EnvDTE.vsCMFunction kind, object type, object Position = null, global::EnvDTE.vsCMAccess Access = global::EnvDTE.vsCMAccess.vsCMAccessPublic)
        {
            var codeGenerator = new ClassCodeGenerator(Class);

            return(codeGenerator.AddPublicMethod(name, (string)type));
        }
Пример #3
0
		public CodeFunction AddFunction(string name, vsCMFunction kind, object type, object Position = null, vsCMAccess Access = vsCMAccess.vsCMAccessPublic)
		{
			var codeGenerator = new ClassCodeGenerator(Class);
			return codeGenerator.AddPublicMethod(name, (string)type);
		}