Пример #1
0
 void PlumbReflectionBased(object instance)
 {
     _provider.ValidateReflectionPermissions();
     foreach (var pro in GetPlumbingProperties(instance.GetType()))
     {
         if (pro.GetValue(instance, null) == null)
         {
             pro.SetValue(instance, _provider.Mining.GetArgument(pro), null);
         }
     }
 }
Пример #2
0
 protected override void ValidateReflectionPermission()
 {
     _provider.ValidateReflectionPermissions();
 }