C# Класс SIL.FieldWorks.Common.Framework.DetailControls.ObjSeqHashMap

An object sequence hash map represents a mapping from sequences of objects to sequences of objects. The key may be anything that implements IList. The value is also a list. It is expected that very commonly only one value will be stored for a given key. The implementation is optimized for this by storing the object directly rather than a sequence holding the one object. Two objects are typically stored as an array, three or more as an ArrayList. (This means lists of lists don't work.)
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Add ( IList keyList, Slice obj ) : void

Add the item to the list associated with this key.

ClearUnwantedPart ( bool differentObject ) : void

GetSliceToReuse ( string className ) : Slice

ObjSeqHashMap ( ) : System

Remove ( IList keyList, Slice obj ) : void

Remove the argument object from the indicated collection. Currently it is not considered an error if the object is not found, just nothing happens.

this ( IList keyList ) : IList

Приватные методы

Метод Описание
Report ( ) : void

Debugging code for investigating slice reuse bugs.

Описание методов

Add() публичный Метод

Add the item to the list associated with this key.
public Add ( IList keyList, Slice obj ) : void
keyList IList
obj Slice
Результат void

ClearUnwantedPart() публичный Метод

public ClearUnwantedPart ( bool differentObject ) : void
differentObject bool
Результат void

GetSliceToReuse() публичный Метод

public GetSliceToReuse ( string className ) : Slice
className string
Результат Slice

ObjSeqHashMap() публичный Метод

public ObjSeqHashMap ( ) : System
Результат System

Remove() публичный Метод

Remove the argument object from the indicated collection. Currently it is not considered an error if the object is not found, just nothing happens.
public Remove ( IList keyList, Slice obj ) : void
keyList IList
obj Slice
Результат void

this() публичный Метод

public this ( IList keyList ) : IList
keyList IList
Результат IList