Check IList IsSynchronized property
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| C# Code Snippets |
| See also |
| edit |
This C# code snippet determines if an array is synchronized using the IsSynchronized property of the IList interface.
using System; using System.Collections; public class ArrayIsSynchronized { public static void Main() { string[] strings = {"C#", ".NET"}; ListPropery (strings); } public static void ListPropery (IList iList) { Console.WriteLine ("IsSynchronized = {0}", iList.IsSynchronized); } }
| IList IsSynchronized example (program output) |
| IsSynchronized = False |