Class StringPool
- Namespace
- CarinaStudio
- Assembly
- CarinaStudio.AppBase.Core.dll
Pool of string to share string instances and reduce redundent string instances. This is thread-safe class.
public class StringPool
- Inheritance
-
StringPool
- Inherited Members
- Extension Methods
Properties
this[string]
Get string instance from pool.
public string this[string value] { get; }
Parameters
valuestringString value. The instance will be added to pool if it is not found in pool.
Property Value
Methods
Clear()
Clear all string instances from pool.
public void Clear()