JD2022-TU1/main/tools/framework/JD.Collections/Details/Strings.cs

34 lines
2.7 KiB
C#

namespace JD.Collections.Details
{
/// <summary>
/// A holder class for localizable strings that are used. Currently, these are not loaded from resources, but
/// just coded into this class. To make this library localizable, simply change this class to load the
/// given strings from resources.
/// </summary>
internal static class Strings
{
public const string UncomparableType = "Type \"{0}\" does not implement IComparable<{0}> or IComparable.";
public const string ArgMustNotBeNegative = "The argument may not be less than zero.";
public const string ArrayTooSmall = "The array is too small to hold all of the items.";
public const string KeyNotFound = "The key was not found in the collection.";
public const string ResetNotSupported = "Reset is not supported on this enumerator.";
public const string CannotModifyCollection = "The \"{0}\" collection is read-only and cannot be modified.";
public const string KeyAlreadyPresent = "The key was already present in the dictionary.";
public const string WrongType = "The value \"{0}\" isn't of type \"{1}\" and can't be used in this generic collection.";
public const string MustOverrideOrReimplement = "This method must be overridden or re-implemented in the derived class.";
public const string MustOverrideIndexerGet = "The get accessor of the indexer must be overridden.";
public const string MustOverrideIndexerSet = "The set accessor of the indexer must be overridden.";
public const string OutOfViewRange = "The argument is outside the range of this View.";
public const string TypeNotCloneable = "Type \"{0}\" does not implement ICloneable.";
public const string ChangeDuringEnumeration = "Collection was modified during an enumeration.";
public const string InconsistentComparisons = "The two collections cannot be combined because they use different comparison operations.";
public const string CollectionIsEmpty = "The collection is empty.";
public const string BadComparandType = "Comparand is not of the correct type.";
public const string CollectionTooLarge = "The collection has become too large.";
public const string InvalidLoadFactor = "The load factor must be between 0.25 and 0.95.";
public const string CapacityLessThanCount = "The capacity may not be less than Count.";
public const string ListIsReadOnly = "The list may not be read only.";
public const string CollectionIsReadOnly = "The collection may not be read only.";
public const string IdentityComparerNoCompare = "The Compare method is not supported on an identity comparer.";
}
}