[Mono-list] Fun and games with Sqlite and System.Reflection
Paul Johnson
paul at all-the-johnsons.co.uk
Wed Apr 9 16:20:00 UTC 2014
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. Why is it that something so obvious is the something that I
miss? D'oh!
Paul
--
Out now from Packt Publishing - "Xamarin Mobile Application Development
for iOS" - my first book
http://www.packtpub.com/xamarin-mobile-application-development-for-ios/book
More information about the Mono-list
mailing list