C# | Check if ListDictionary is synchronized (thread safe) Last Updated : 01 Feb, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report ListDictionary.IsSynchronized property is used to get a value indicating whether the ListDictionary is synchronized (thread safe) or not. Syntax: public bool IsSynchronized { get; } Return Value: This property always returns false. Below are the programs to illustrate the use of ListDictionary.IsSynchronized property: Example 1: CSHARP // C# code to check if ListDictionary // is synchronized (thread safe) using System; using System.Collections; using System.Collections.Specialized; class GFG { // Driver code public static void Main() { // Creating a ListDictionary named myDict ListDictionary myDict = new ListDictionary(); myDict.Add("Australia", "Canberra"); myDict.Add("Belgium", "Brussels"); myDict.Add("Netherlands", "Amsterdam"); myDict.Add("China", "Beijing"); myDict.Add("Russia", "Moscow"); myDict.Add("India", "New Delhi"); // Check if ListDictionary is // synchronized (thread safe) Console.WriteLine(myDict.IsSynchronized); } } Output: False Example 2: CSharp // C# code to check if ListDictionary // is synchronized (thread safe) using System; using System.Collections; using System.Collections.Specialized; class GFG { // Driver code public static void Main() { // Creating a ListDictionary named myDict ListDictionary myDict = new ListDictionary(); myDict.Add("1", "C"); myDict.Add("2", "C++"); myDict.Add("3", "Java"); myDict.Add("4", "Python"); myDict.Add("5", "C#"); myDict.Add("6", "Data Structure"); // Check if ListDictionary is // synchronized (thread safe) Console.WriteLine(myDict.IsSynchronized); } } Output: False Reference: https://docs.microsoft.com/en-us/dotnet/api/system.collections.specialized.listdictionary.issynchronized?view=netframework-4.7.2 Comment More infoAdvertise with us Next Article C# | Check if ListDictionary is synchronized (thread safe) S Sahil_Bansall Follow Improve Article Tags : C# CSharp-Specialized-Namespace CSharp-Specialized-ListDictionary Similar Reads C# | Check if StringDictionary is synchronized (thread safe) StringDictionary.IsSynchronized property is used to get a value indicating whether access to the StringDictionary is synchronized (thread-safe). Syntax: public virtual bool IsSynchronized { get; } Return Value: This method returns True if access to the StringDictionary is synchronized (thread safe), 1 min read C# | Check if HybridDictionary is Synchronized (thread safe) HybridDictionary.IsSynchronized property is used to get a value that indicates whether the HybridDictionary is synchronized (thread safe) or not. Syntax: public bool IsSynchronized { get; } Return Value: This property always returns false. Below programs illustrate the use of HybridDictionary.IsSync 2 min read C# | Check if an array is synchronized (thread safe) or not Array.IsSynchronized Property is used to get a value which indicates whether access to the Array is synchronized (thread-safe) or not. Syntax: public bool IsSynchronized { get; } Property Value: This property always returns false for all arrays. Below programs illustrate the use of above-discussed p 2 min read C# | Check if ListDictionary is read-only ListDictionary.IsReadOnly property is used to get a value indicating whether the ListDictionary is read-only or not. Syntax: public bool IsReadOnly { get; } Return Value : This property always returns false. Example: CSHARP // C# code to check if ListDictionary is read-only using System; using Syste 1 min read C# | Check if StringCollection is synchronized (thread safe) StringCollection class is a new addition to the .NET Framework class library that represents a collection of strings. StringCollection class is defined in the System.Collections.Specialized namespace. StringCollection.IsSynchronized property is used to get a value indicating whether access to the St 1 min read Like