Пример #1
0
 private bool Equals(SelectedMember other)
 {
     return(MemberType == other.MemberType && string.Equals(MemberName, other.MemberName));
 }
Пример #2
0
 /// <summary>
 /// Initializes new member context by providing all required properties.
 /// </summary>
 /// <param name="member">Inforation about member selected by builder.</param>
 /// <param name="context">Builder-specific context associated with selected member.</param>
 /// <param name="source">Indicates what has triggered context creation.</param>
 /// <exception cref="ArgumentNullException"><paramref name="member"/> or <paramref name="context"/> is null.</exception>
 public MemberContext(SelectedMember member, TContext context, ContextSource source)
 {
     Member  = member ?? throw new ArgumentNullException(nameof(member));
     Context = context;
     Source  = source;
 }