I have a requirement in the C# app to find if a byte exists as part of byte array and take decision based on that.
I came across few of two ways to do that.
Use the basic byte[] Array and use for loop to find the existence of the byte i am looking for
(Or)
Use some thing like List<byte> byteList and then "byteList.Contains((byte)byteVar)" .
Not very sure which one is advised performance wise. Would it better to always use generic List or its suggested only when you have large number of elements.