Table of Contents

Interface ISeriennummernManager

Namespace
BpNexT.NET.Models.Lager
Assembly
BpNexT.NET.Contracts.Com.dll

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

int

this[int]

Gets the serial number at the specified zero-based index.

string this[int index] { get; }

Parameters

index int

Property Value

string

Methods

Add(string)

Adds a serial number to the collection.

int Add(string serialNumber)

Parameters

serialNumber string

Returns

int

AddRange(IEnumerable<string>)

Adds multiple serial numbers to the collection.

void AddRange(IEnumerable<string> serialNumbers)

Parameters

serialNumbers IEnumerable<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

serialNumber string

Returns

bool

HasDuplicates()

Checks whether there are duplicate serial numbers in the collection.

bool HasDuplicates()

Returns

bool

IndexOf(string)

Returns the zero-based index of the specified serial number, or -1 if not found.

int IndexOf(string serialNumber)

Parameters

serialNumber string

Returns

int

Pack(bool, bool)

Sorts and/or packs the serial numbers in the collection.

void Pack(bool sort = true, bool pack = false)

Parameters

sort bool
pack bool

Remove(string)

Removes the first occurrence of the specified serial number.

bool Remove(string serialNumber)

Parameters

serialNumber string

Returns

bool

RemoveAt(int)

Removes the serial number at the specified zero-based index.

void RemoveAt(int index)

Parameters

index int

RemoveDuplicates()

Removes duplicate serial numbers from the collection.

bool RemoveDuplicates()

Returns

bool

Sort()

Sorts the serial numbers in the collection.

void Sort()

ToList()

Gets all serial numbers as a list.

List<string> ToList()

Returns

List<string>