Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Extending EditString to filter keys
Re: Extending EditString to filter keys [message #31180 is a reply to message #31176] |
Fri, 11 February 2011 17:31 |
|
Jeremi wrote on Fri, 11 February 2011 16:52 | It works when I use (from example)
edName.SetConvert(Single<ConvertAlpha>());
Why Single? What does it do? Singleton?
|
I don't know proper definition of Singleton, but I guess that Single matches it Single<T>() creates static instance of T and any subsequent call to Single<T> returns reference to this variable. It saves memory, because you have only one instance for all the places in code where you use it.
Honza
|
|
|
Goto Forum:
Current Time: Mon Jun 10 14:12:11 CEST 2024
Total time taken to generate the page: 0.02123 seconds
|