namespace Hessian.Collections { /// /// Represents a map that associates objects with a zero-based integer /// index. Specified in Hessian 2.0. /// /// public interface IRefMap { /// /// Adds an element to the ref map and returns its ID. /// /// /// int Add(T entry); /// /// Retrieves the element identified by the given ID. /// /// /// T Get(int refId); /// /// Looks up an element in the ref map and, if present, returns its ID. /// /// /// Performance of this method is not guaranteed and is implementation-specific. /// int? Lookup(T entry); } }