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.)
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
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