Exemplo n.º 1
0
 /// <summary>
 /// Finds an <see cref="InputRadioContext"/> in the context's ancestors with the matching <paramref name="groupName"/>.
 /// </summary>
 /// <param name="groupName">The group name of the ancestor <see cref="InputRadioContext"/>.</param>
 /// <returns>The <see cref="InputRadioContext"/>, or <c>null</c> if none was found.</returns>
 public InputRadioContext?FindContextInAncestors(string groupName)
 => string.Equals(GroupName, groupName) ? this : ParentContext?.FindContextInAncestors(groupName);