internal void Mark(MatchingType matchingType, FieldInfo fi) { MatchingType |= matchingType; if (matchingType == MatchingType.Left) { LeftSideItem = new FieldMatchingMemberItem <T1>(fi); } else if (matchingType == MatchingType.Right) { RightSideItem = new FieldMatchingMemberItem <T2>(fi); } }
internal void Mark(MatchingType matchingType, PropertyInfo pi) { MatchingType |= matchingType; if (matchingType == MatchingType.Left) { LeftSideItem = new PropertyMatchingMemberItem <T1>(pi); } else if (matchingType == MatchingType.Right) { RightSideItem = new PropertyMatchingMemberItem <T2>(pi); } }