Interface ISeriennummernManager
Managed serial-number collection for warehouse operations.
public interface ISeriennummernManager : IEnumerable<string>, IEnumerable
- Inherited Members
Properties
Count
Gets the number of serial numbers currently in the collection.
int Count { get; }
Property Value
this[int]
Gets the serial number at the specified zero-based index.
string this[int index] { get; }
Parameters
indexint
Property Value
Methods
Add(string)
Adds a serial number to the collection.
int Add(string serialNumber)
Parameters
serialNumberstring
Returns
AddRange(IEnumerable<string>)
Adds multiple serial numbers to the collection.
void AddRange(IEnumerable<string> serialNumbers)
Parameters
serialNumbersIEnumerable<string>
Clear()
Removes all serial numbers from the collection.
void Clear()
Contains(string)
Determines whether the collection contains the specified serial number.
bool Contains(string serialNumber)
Parameters
serialNumberstring
Returns
HasDuplicates()
Checks whether there are duplicate serial numbers in the collection.
bool HasDuplicates()
Returns
IndexOf(string)
Returns the zero-based index of the specified serial number, or -1 if not found.
int IndexOf(string serialNumber)
Parameters
serialNumberstring
Returns
Pack(bool, bool)
Sorts and/or packs the serial numbers in the collection.
void Pack(bool sort = true, bool pack = false)
Parameters
Remove(string)
Removes the first occurrence of the specified serial number.
bool Remove(string serialNumber)
Parameters
serialNumberstring
Returns
RemoveAt(int)
Removes the serial number at the specified zero-based index.
void RemoveAt(int index)
Parameters
indexint
RemoveDuplicates()
Removes duplicate serial numbers from the collection.
bool RemoveDuplicates()
Returns
Sort()
Sorts the serial numbers in the collection.
void Sort()
ToList()
Gets all serial numbers as a list.
List<string> ToList()