Permalink
Browse files

ignoring unmapped columns

  • Loading branch information...
1 parent 2e6f6fb commit 39cc660ce020085d3da495d9c79bd8561701cbc3 @mausch committed Aug 15, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 GDataDB/Impl/Serializer.cs
@@ -46,6 +46,8 @@ public class Serializer<T> {
var r = (T) Activator.CreateInstance(t);
foreach (ListEntry.Custom c in e.Elements) {
var property = t.GetProperty(c.LocalName, BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.Public);
+ if (property == null)
+ continue;
if (property.CanWrite) {
var value = ConvertFrom(c.Value, property.PropertyType);
property.SetValue(r, value, null);

0 comments on commit 39cc660

Please sign in to comment.