troubleshooting Question

checking sequence of numbers through byte array in c#

Avatar of ghj Grandhe
ghj Grandhe asked on
C#
3 Comments2 Solutions107 ViewsLast Modified:
Actually i need to check the sequence of elements in an byte array in c#
where here "d" and "q" are character arrays.

here the below 2 lines are converting it into byte[]
iam getting error at    "if((item)==p.Contains(Convert.ToInt32(item)+1))"
byte[] p = Encoding.UTF8.GetBytes(d);
            byte[] r = Encoding.UTF8.GetBytes(q);
         
            foreach (var item in p)
            {
                if((item)==p.Contains(Convert.ToInt32(item)+1))
                {
                    count1 += 1;
                }

could you please help the error is byte[] doesnot contain 'contains' .
ASKER CERTIFIED SOLUTION
Misha
Programmer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros