Ejemplo n.º 1
0
 public CodeDomCodeVariable(DTE dte, CodeElement parent, string name, CodeTypeRef type, vsCMAccess access)
     : base(dte, name)
 {
     CodeObject                   = new CodeMemberField(CodeDomCodeTypeRef.ToCodeTypeReference(type), name);
     CodeObject.Attributes        = VSAccessToMemberAccess(access);
     CodeObject.UserData[CodeKey] = this;
     this.parent                  = parent;
 }
Ejemplo n.º 2
0
        public CodeDomCodeParameter(DTE dte, CodeElement parent, string name, CodeTypeRef type)
            : base(dte, name)
        {
            this.parent = parent;
            this.type   = type;

            CodeObject = new CodeParameterDeclarationExpression(
                CodeDomCodeTypeRef.ToCodeTypeReference(type),
                name);
            CodeObject.UserData[CodeKey] = this;
        }
Ejemplo n.º 3
0
        public CodeDomCodeProperty(DTE dte, CodeClass parent, string name, string putName, object type, vsCMAccess access)
            : base(dte, name)
        {
            this.parent = parent;

            CodeMemberProperty prop = new CodeMemberProperty();

            prop.Name = name;
            prop.UserData[CodeKey] = this;
            CodeObject             = prop;

            prop.Type       = CodeDomCodeTypeRef.ToCodeTypeReference(ObjectToTypeRef(type));
            prop.Attributes = VSAccessToMemberAccess(access);
        }