Skip to content

Instantly share code, notes, and snippets.

@Lokutus
Lokutus / ArraySorter.lss
Created June 29, 2012 16:24
ArraySorter (recursive quicksort)
%REM
Class ArraySorter
Simple class to sort an array using recursive QuickSort
For bigger collections use ArraySortProvider
@author Jiri Krakora
@date 13.6.2012
@version 1.00
@uses
@revision
@Lokutus
Lokutus / SortableCollection.lss
Created June 29, 2012 16:24
SortableCollection
%REM
Class SortableCollectionItem
Enumerable object to be used in sortable collections
Sort comparison is provided by extending of the method CompareTo
CompareTo method expects object of the same type as the current
@author Jiri Krakora
@date 26.06.2012
@extends CollectionItem
@revision 1.0 Release
@Lokutus
Lokutus / Collection.lss
Created June 29, 2012 16:23
Collection
%REM
Class CollectionItem
Enumerable object to be used in collections
@author Jiri Krakora aka Lokutus
@date 28.3.2012
@revision 1.0 Release
%END REM
Public Class CollectionItem
Private oID As String
%REM
Class Stack
Represents a simple last-in-first-out (LIFO) non-generic collection of objects.
Use Push/Pop for inserting and taking items
Use Top for viewing top item without removing it
@author Jiri Krakora
@date 15.6.2012
@uses
@revision
public enum ErrorCodes
{
NotNumeric,
BadFormat,
ChecksumError
}
public class BarCodeException : ArgumentException
{
public ErrorCodes ErrorCode { get; private set; }