Example #1
0
        public virtual global::EnvDTE.CodeVariable AddVariable(string name, object type, object Position = null, global::EnvDTE.vsCMAccess Access = global::EnvDTE.vsCMAccess.vsCMAccessPublic, object Location = null)
        {
            var codeGenerator = new ClassCodeGenerator(Class);

            return(codeGenerator.AddPublicVariable(name, (string)type));
        }
 void AddPublicVariable(string name, string type)
 {
     codeVariable = codeGenerator.AddPublicVariable(name, type);
 }
Example #3
0
		public virtual global::EnvDTE.CodeVariable AddVariable(string name, object type, object Position = null, global::EnvDTE.vsCMAccess Access = global::EnvDTE.vsCMAccess.vsCMAccessPublic, object Location = null)
		{
			var codeGenerator = new ClassCodeGenerator(Class);
			return codeGenerator.AddPublicVariable(name, (string)type);
		}