New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Thread
C#
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 */
by Robert Andersson   April 29, 2010 @ 4:53am
58 Views
no comments
 
C#
// 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
by Jerry Nixon   March 05, 2010 @ 8:41am
Tags: C#, Thread, Action
136 Views
no comments
 
C#
private static object _SyncLock = new object();
 
public TableInfo<TEntity> TableInfo
{
  get 
  {
      if (_TableInfo == null)
      {
          lock (_SyncLock)
          {
by Rick Strahl   August 23, 2009 @ 9:19pm
92 Views
no comments
 
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate