Inheritance: System.CodeDom.CodeTypeReference
Exemplo n.º 1
0
 public ClrBasePropertyInfo()
 {
     this.IsVirtual = false;
     this.isOverride = false;
     this.returnType = null;
     annotations = new List<ClrAnnotation>();
 }
Exemplo n.º 2
0
 public ClrBasePropertyInfo()
 {
     this.IsVirtual   = false;
     this.isOverride  = false;
     this.returnType  = null;
     this.annotations = new List <ClrAnnotation>();
 }
Exemplo n.º 3
0
        private XCodeTypeReference CreateListReturnType(string fullTypeName)
        {
            XCodeTypeReference xCodeTypeReference;

            CodeTypeReference[] codeTypeReference;
            if (!this.hasSet)
            {
                codeTypeReference  = new CodeTypeReference[] { new CodeTypeReference(fullTypeName) };
                xCodeTypeReference = new XCodeTypeReference("IEnumerable", codeTypeReference);
            }
            else
            {
                codeTypeReference  = new CodeTypeReference[] { new CodeTypeReference(fullTypeName) };
                xCodeTypeReference = new XCodeTypeReference("IList", codeTypeReference);
            }
            return(xCodeTypeReference);
        }
Exemplo n.º 4
0
        public void Init(CodeMemberProperty property)
        {
            propertyName = property.Name;
            returnType = (XCodeTypeReference)property.Type;
            if(returnType.fullTypeName!=null && returnType.fullTypeName != returnType.BaseType) {
                returnType = new XCodeTypeReference(returnType.fullTypeName);
            }
            hasSet = property.HasSet;
            wrappedPropertyAttributes = property.Attributes;

            codeCommentStatementCollection = property.Comments;
        }