public ClrBasePropertyInfo() { this.IsVirtual = false; this.isOverride = false; this.returnType = null; annotations = new List<ClrAnnotation>(); }
public ClrBasePropertyInfo() { this.IsVirtual = false; this.isOverride = false; this.returnType = null; this.annotations = new List <ClrAnnotation>(); }
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); }
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; }