Example #1
0
 public void Register(Type type, Metadata medataData)
 {
     foreach (var propertyInfo in medataData.GetType().GetRuntimeProperties())
     {
         var dic   = GetDictionary(propertyInfo.Name);
         var value = propertyInfo.GetValue(medataData);
         if (value != null)
         {
             dic.Add(type, value);
         }
     }
 }
Example #2
0
 public void Register(Type type, Metadata medataData)
 {
     foreach (var propertyInfo in medataData.GetType().GetRuntimeProperties())
     {
         var dic = GetDictionary(propertyInfo.Name);
         var value = propertyInfo.GetValue(medataData);
         if (value != null)
         {
             dic.Add(type, value);
         }
     }
 }