C# StringDictionary IsSynchronized

Description

StringDictionary IsSynchronized gets a value indicating whether access to the StringDictionary is synchronized (thread safe).

Syntax

StringDictionary.IsSynchronized has the following syntax.


public virtual bool IsSynchronized { get; }

Example


using System;//from  ww  w  . j  av  a2 s  .c  o m
using System.Collections;
using System.Collections.Specialized;

public class SamplesStringDictionary  {

   public static void Main()  {
      StringDictionary myCol = new StringDictionary();
      myCol.Add( "red", "rojo" );
      myCol.Add( "green", "verde" );
      myCol.Add( "blue", "azul" );

      Console.WriteLine( myCol.IsSynchronized );
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Collections.Specialized »




BitVector32
HybridDictionary
ListDictionary
OrderedDictionary
StringCollection
StringDictionary
StringEnumerator