Last Updated : 11 Jul, 2025
ListDictionary.IsSynchronizedproperty 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.IsSynchronizedproperty:
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:
FalseExample 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:
FalseReference:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4