/// <summary> /// <para>Gets the specified <see cref="CustomTrait"/> <paramref name="type"/>'s metadata.</para> /// </summary> /// <param name="type">The <see cref="CustomTrait"/> type to get the metadata for.</param> /// <returns>The specified <paramref name="type"/>'s metadata.</returns> /// <exception cref="ArgumentException"><paramref name="type"/> is not a <see cref="CustomTrait"/>.</exception> public static TraitInfo Get(Type type) => infos.TryGetValue(type, out TraitInfo info) ? info : (infos[type] = new TraitInfo(type));