Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Range from an array of bytes
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00954546
Message ID:
00954716
Views:
14
This message has been marked as the solution to the initial question of the thread.
Array.Copy should do this for you:

          byte[] Values = new Byte[4] { 0,49,50,51 };
          byte[] Values2 = new Byte[2];
          Array.Copy( Values,1,Values2,0,2);
         Console.Write ( System.Text.Encoding.Default.GetString(Values2,0,2));  
+++ Rick ---

>I have an array of bytes: System.Byte[] myByteArray = new System.Byte[300];
>No my problem is that i want to create some arrays of a subset of myByteArray i.e. mySubArray = values in myByteArray between 10 and 42.
>I'd like to do this without any loops is that possible? How?
>
>Thanks,
>Einar
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform