Re: [Mono-list] Fun and games with Sqlite and System.Reflection

2014-04-09 Thread Paul Johnson
Hi Robert, How about checking whether the IgnoreAttribute is applied to the property? for (int i = 0; i < properties.Length - 1; i++) { // ignore props marked with [Ignore] if (properties[i].GetCustomAttributes(typeof(IgnoreAttribute), false).Length > 0) next; } Perfect. Wh

Re: [Mono-list] Fun and games with Sqlite and System.Reflection

2014-04-09 Thread Robert Jordan
How about checking whether the IgnoreAttribute is applied to the property? for (int i = 0; i < properties.Length - 1; i++) { // ignore props marked with [Ignore] if (properties[i].GetCustomAttributes(typeof(IgnoreAttribute), false).Length > 0) next; } Robert On 09.04

[Mono-list] Fun and games with Sqlite and System.Reflection

2014-04-09 Thread Paul Johnson
Hi, I have a very simple SQLite database class which I'm using System.Reflection to serialise and use within my DBManager class. My class looks like this (it's a test case to try and get things working before I integrate it) public class dbclass { [PrimaryKey] public string Id { get