Format:
Recent snippets matching tags of Thread
int intValue = 1512; string stringValue = intValue.ToString("#,#", CultureInfo.GetCultureInfo(Thread.CurrentThread.CurrentCulture.Name)); /* Result in US English (en-US) will be 1,512 Result in Swedish (sv-SE) will be 1 512 */
58 Views
no comments
// handle the completed event _Service.MyMethodCompleted += (s, e) => { // an Action is just a built-in delegate Action _Action = () => { // access the UI here this.MyLabel.Text = e.Result; } // change the thread context
136 Views
no comments
private static object _SyncLock = new object(); public TableInfo<TEntity> TableInfo { get { if (_TableInfo == null) { lock (_SyncLock) {
92 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
