コード例 #1
0
 /// <summary>
 /// Returns a sequence of two attributes.
 /// </summary>
 public static IEnumerable <ElementAttribute> Append(this ElementAttribute first, ElementAttribute second) =>
 Enumerable.Empty <ElementAttribute>().Append(first).Append(second);
コード例 #2
0
 /// <summary>
 /// Concatenates attributes.
 /// </summary>
 public static IEnumerable <ElementAttribute> Concat(this ElementAttribute first, IEnumerable <ElementAttribute> second) => second.Prepend(first);