TPS1100-Convert/MadMilkman.Ini-1.0.6/MadMilkman.Ini/IniEnums/IniDuplication.cs
2024-06-02 05:35:03 +02:00

28 lines
890 B
C#

namespace MadMilkman.Ini
{
/// <summary>
/// Defines a behaviour for duplicate <see cref="IniItem.Name"/> occurences.
/// </summary>
public enum IniDuplication
{
/// <summary>
/// Allow duplicate names in <see cref="IniItemCollection{T}"/>.
/// </summary>
Allowed = 0,
/// <summary>
/// Disallow duplicate names in <see cref="IniItemCollection{T}"/>.
/// </summary>
/// <remarks>
/// <see cref="System.InvalidOperationException"/> is thrown on duplicate name occurence.
/// </remarks>
Disallowed,
/// <summary>
/// Ignore duplicate names.
/// </summary>
/// <remarks>
/// Prevents adding or inserting an <see cref="IniItem"/> if its name already exists in <see cref="IniItemCollection{T}"/>.
/// </remarks>
Ignored
}
}