Exemplo n.º 1
0
 private IEnumerable <(string name, object value)> GetProperties(TInformation obj)
 {
     foreach (var p in Properties)
     {
         if (SerializeAllProperties || TargetProperties.ContainsKey(p.Key) || TargetCollectionProperties.ContainsKey(p.Key))
         {
             yield return(p.Key, p.Value.GetValue(obj));
         }
     }
 }