コード例 #1
0
 /// <summary>
 /// Checks if a specified user belongs to the friend list.
 /// </summary>
 /// <param name="name">The name of the user.</param>
 public bool IsFriend(string name) => FriendList.Contains(name);
コード例 #2
0
 /// <summary>
 /// Checks if a specified user belongs to the friend list.
 /// </summary>
 /// <param name="name">The name of the user.</param>
 public bool IsFriend(string name)
 {
     return(FriendList.Contains(name));
 }