Skip to content

Commit

Permalink
ignoring unmapped columns
Browse files Browse the repository at this point in the history
  • Loading branch information
mausch committed Aug 15, 2011
1 parent 2e6f6fb commit 39cc660
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GDataDB/Impl/Serializer.cs
Expand Up @@ -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);
Expand Down

0 comments on commit 39cc660

Please sign in to comment.