Exemplo n.º 1
0
 /// <summary>
 /// Returns true if this <see cref="Skill"/> is a child of
 /// the given Skill.
 /// </summary>
 /// <param name="skill"></param>
 /// <returns></returns>
 public bool IsChildOf(Skill skill)
 {
     return(parents.Contains(skill));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Removes the given <see cref="Skill"/> from the list of
 /// parent Skills, if it is present.
 /// </summary>
 /// <param name="skill"></param>
 public void RemoveParent(Skill skill)
 {
     parents.Remove(skill);
 }