C# | Check if ListDictionary is synchronized (thread safe) Read Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue 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: // 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: // 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 Last Updated : 01 Feb, 2019 Like Article Save Article Previous C# | Get an ICollection containing values in OrderedDictionary Next C# | Check if HybridDictionary is Synchronized (thread safe) Share your thoughts in the comments Add Your Comment Please Login to comment...