/// <summary>Initializes a new instance of the NServiceKit.Common.Support.AssignmentEntry class.</summary> /// /// <param name="name">The name.</param> /// <param name="from">Source for the.</param> /// <param name="to"> to.</param> public AssignmentEntry(string name, AssignmentMember @from, AssignmentMember to) { Name = name; From = @from; To = to; GetValueFn = From.GetGetValueFn(); SetValueFn = To.GetSetValueFn(); }
/// <summary>Adds a match.</summary> /// /// <param name="name"> The name.</param> /// <param name="readMember"> The read member.</param> /// <param name="writeMember">The write member.</param> public void AddMatch(string name, AssignmentMember readMember, AssignmentMember writeMember) { this.AssignmentMemberMap[name] = new AssignmentEntry(name, readMember, writeMember); }
/// <summary>Adds a match.</summary> /// /// <param name="name"> The name.</param> /// <param name="readMember"> The read member.</param> /// <param name="writeMember">The write member.</param> public void AddMatch(string name, AssignmentMember readMember, AssignmentMember writeMember) { this.AssignmentMemberMap[name] = new AssignmentEntry(name, readMember, writeMember); }