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