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