C# StringCollection IsSynchronized
Description
StringCollection IsSynchronized
gets a value indicating
whether access to the StringCollection is synchronized (thread safe).
Syntax
StringCollection.IsSynchronized
has the following syntax.
public bool IsSynchronized { get; }
Example
/* w w w.ja v a2 s . com*/
using System;
using System.Collections;
using System.Collections.Specialized;
public class SamplesStringCollection {
public static void Main() {
StringCollection myCol = new StringCollection();
String[] myArr = new String[] { "A", "B", "C", "java2s.com"};
myCol.AddRange( myArr );
Console.WriteLine( myCol.IsSynchronized);
}
}
The code above generates the following result.