Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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);
 }