3 using System.Collections.Generic;
6 using System.Threading.Tasks;
8 namespace Sage.
ES.S50.UnitTest
10 internal class RequiredValues
13 Dictionary<string, object> _RequiredValues =
new Dictionary<string, object>();
16 #region Public Methods 17 public void Add(
string tsProperty,
object toValue)
19 if (_RequiredValues.ContainsKey(tsProperty))
21 _RequiredValues[tsProperty] = toValue;
24 _RequiredValues.Add(tsProperty, toValue);
26 public void FillRequiredValues(
IMante target)
28 Type loType = target.GetType();
29 foreach (var item
in _RequiredValues)
31 loType.GetProperty(item.Key).SetValue(target, item.Value);
Nueva interficie madre de IMantes y de la que colgara ewMante. Propiedades: _Codigo, _Nombre, _Error_Message. Metodos: _New, Save, _Delete, _Load, _Existe_Registro, _Clonar
AƱade una nueva instancia