示例#1
0
 private static CodeTypeMember CreateField(BackingField field)
 {
     return(new CodeMemberField(CreateCodeTypeReference(field.Type), field.Name)
     {
         CustomAttributes = new CodeAttributeDeclarationCollection(field.Attributes.ToArray())
     });
 }
示例#2
0
 public ReadOnlyProperty(string name, MemberType type, BackingField backingField, IEnumerable <CodeAttributeDeclaration> attributeDeclarations)
     : base(name, type, attributeDeclarations)
 {
     BackingField = backingField;
 }