Click or drag to resize

CollectionAddFlags Enumeration

Add modifiers.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
[FlagsAttribute]
public enum CollectionAddFlags
Members
  Member nameValueDescription
CollectionAddFlagsMask268369920 A mask to identify the bits available to this enum. Bits outside this range must not be used in this enum because they are reserved for other enums whose bits are coordinated with this enum (e.g. PropertyAttrs).
AddIfMissing131072 Add object if not already in collection else return the object. Note that if ErrorIfExists is also specified an error will be raised if the item already exists in the collection.
ReplaceIfDiff262144 Add object if not already in collection else set value only if it differs from the existing value. For this comparison both the old (if any) and new values are coerced to a string. Thus, for example, string “3” will match numeric 3.
LogIfExists524288 Add the object per other flags, but log a warning to the devlog if the item is already in the collection. Note that if ErrorIfExists is also specified an error will be raised (after logging) if the item already exists in the collection.
ErrorIfExists1048576 If an object with the same name already exists in collection raise an error. Note that if ReplaceIfDiff is also set, ReplaceIfDiff will be favored.
NoDupeCheck2097152 Do not check for duplicates when adding to the collection.
See Also