Fan.Sys.Locale.use C# (CSharp) Method

use() public method

public use ( Func func ) : Locale
func Func
return Locale
        public Locale use(Func func)
        {
            Locale old = cur();
              try
              {
            setCur(this);
            func.call(this);
              }
              finally
              {
            setCur(old);
              }
              return this;
        }