You can use the Enumerable.SequenceEqual() in the System.Linq to compare the contents in the array
bool isEqual = Enumerable.SequenceEqual(target1, target2);
More Related Contents:
- Easiest way to compare arrays in C#
- C# how to create an array of objects? [closed]
- how to write every element of an array in a line of a textbox C# [closed]
- Convert string[] to Array
- How do I divide an array into separate arrays in C#?
- Cannot deserialize the JSON array (e.g. [1,2,3]) into type ‘ ‘ because type requires JSON object (e.g. {“name”:”value”}) to deserialize correctly
- Array slices in C#
- How do I concatenate two arrays in C#?
- How do I convert a Stream into a byte[] in C#? [duplicate]
- How to store int[] array in application Settings
- change array size
- How to parse a month name (string) to an integer for comparison in C#?
- Fast way to convert a two dimensional array to a List ( one dimensional )
- How can I print the contents of an array horizontally?
- What is the use of the ArraySegment class?
- How to pass a single object[] to a params object[]
- How to add a string to a string[] array? There’s no .Add function
- Convert array of integers to comma-separated string
- Compare RGB colors in c#
- List array duplicates with count
- Converting jagged array to 2D array C#
- Sorting an array related to another array
- How to sort two arrays by same index?
- Why is array co-variance considered so horrible?
- Casting array to IEnumerable
- How to split a byte array
- How to get random values from array in C# [duplicate]
- Are immutable arrays possible in .NET?
- How to convert byte array to any type
- Force garbage collection of arrays, C#